Class: OsCtld::Devices::V2::Configurator
- Inherits:
-
Devices::Configurator
- Object
- Devices::Configurator
- OsCtld::Devices::V2::Configurator
show all
- Defined in:
- lib/osctld/devices/v2/configurator.rb
Instance Attribute Summary collapse
Instance Method Summary
collapse
Instance Attribute Details
#prog_name ⇒ String
6
7
8
|
# File 'lib/osctld/devices/v2/configurator.rb', line 6
def prog_name
@prog_name
end
|
Instance Method Details
#abs_cgroup_path ⇒ String
Returns absolute cgroup path.
20
21
22
|
# File 'lib/osctld/devices/v2/configurator.rb', line 20
def abs_cgroup_path
raise NotImplementedError
end
|
#attach_prog(devices) ⇒ Object
24
25
26
27
28
29
30
31
|
# File 'lib/osctld/devices/v2/configurator.rb', line 24
def attach_prog(devices)
@prog_name = Devices::V2::BpfProgramCache.set(
owner.pool.name,
devices,
abs_cgroup_path,
prog_name: @prog_name
)
end
|
#cgroup_path ⇒ String
Returns relative cgroup path.
15
16
17
|
# File 'lib/osctld/devices/v2/configurator.rb', line 15
def cgroup_path
raise NotImplementedError
end
|
#get_prog(devices) ⇒ Object
#init(devices) ⇒ Object
8
9
10
|
# File 'lib/osctld/devices/v2/configurator.rb', line 8
def init(devices)
get_prog(devices)
end
|