Home
last modified time | relevance | path

Searched refs:controller (Results 1 – 25 of 32) sorted by relevance

12

/systemd-251/src/basic/
Dcgroup-util.c41 static int cg_enumerate_items(const char *controller, const char *path, FILE **_f, const char *item… in cg_enumerate_items() argument
48 r = cg_get_path(controller, path, item, &fs); in cg_enumerate_items()
60 int cg_enumerate_processes(const char *controller, const char *path, FILE **_f) { in cg_enumerate_processes() argument
61 return cg_enumerate_items(controller, path, _f, "cgroup.procs"); in cg_enumerate_processes()
90 const char *controller, in cg_read_event() argument
98 r = cg_get_path(controller, path, "cgroup.events", &events); in cg_read_event()
180 int cg_enumerate_subgroups(const char *controller, const char *path, DIR **_d) { in cg_enumerate_subgroups() argument
189 r = cg_get_path(controller, path, NULL, &fs); in cg_enumerate_subgroups()
225 int cg_rmdir(const char *controller, const char *path) { in cg_rmdir() argument
229 r = cg_get_path(controller, path, NULL, &p); in cg_rmdir()
[all …]
Dcgroup-util.h178 int cg_enumerate_processes(const char *controller, const char *path, FILE **_f);
180 int cg_read_event(const char *controller, const char *path, const char *event,
183 int cg_enumerate_subgroups(const char *controller, const char *path, DIR **_d);
194 int cg_kill(const char *controller, const char *path, int sig, CGroupFlags flags, Set *s, cg_kill_l…
195 int cg_kill_kernel_sigkill(const char *controller, const char *path);
196 int cg_kill_recursive(const char *controller, const char *path, int sig, CGroupFlags flags, Set *s,…
201 int cg_get_path(const char *controller, const char *path, const char *suffix, char **fs);
202 int cg_get_path_and_check(const char *controller, const char *path, const char *suffix, char **fs);
204 int cg_pid_get_path(const char *controller, pid_t pid, char **path);
206 int cg_rmdir(const char *controller, const char *path);
[all …]
/systemd-251/hwdb.d/
D20-pci-classes.hwdb18 ID_PCI_CLASS_FROM_DATABASE=Mass storage controller
21 ID_PCI_SUBCLASS_FROM_DATABASE=SCSI storage controller
27 ID_PCI_INTERFACE_FROM_DATABASE=ISA Compatibility mode-only controller
30 ID_PCI_INTERFACE_FROM_DATABASE=PCI native mode-only controller
33 …ID_PCI_INTERFACE_FROM_DATABASE=ISA Compatibility mode controller, supports both channels switched …
36 …ID_PCI_INTERFACE_FROM_DATABASE=PCI native mode controller, supports both channels switched to ISA …
39 ID_PCI_INTERFACE_FROM_DATABASE=ISA Compatibility mode-only controller, supports bus mastering
42 ID_PCI_INTERFACE_FROM_DATABASE=PCI native mode-only controller, supports bus mastering
45 …ID_PCI_INTERFACE_FROM_DATABASE=ISA Compatibility mode controller, supports both channels switched …
48 …ID_PCI_INTERFACE_FROM_DATABASE=PCI native mode controller, supports both channels switched to ISA …
[all …]
Dpci.ids53 0001 PCAN-PCI CAN-Bus controller
569 # Fujitsu D2607 SAS2008 HBA controller
712 # Supermicro AOC-S3008L-L8e uses 0808 for their SAS3008 SAS controller
957 # 9560 16 internal port RAID controller
959 # 9561 16 internal port RAID controller
961 # 9560 8 internal port RAID controller
963 # 9580 8 internal & 8 external port RAID controller
965 # MegaRAID 9562-16i 9562 16 internal port RAID controller
1404 439d SB7x0/SB8x0/SB9x0 LPC host controller
4311 0502 SCx200, SC1100 IDE controller
[all …]
Dusb.ids59 6025 CBM2080 / CBM2090 Flash drive controller
60 6026 CBM1180 Flash drive controller
1697 4041 Hub and media card controller
4563 00f3 FX3 micro-controller (DFU mode)
5120 ed16 BeamiRC 2.0 CNC remote controller analoge
5134 fbb2 GCUSB-nStep stepper motor controller
5151 1400 PS/2 keyboard + mouse controller
6871 03d5 PlayStation Move motion controller
6874 042f PlayStation Move navigation controller
6902 0cda PlayStation Classic controller
[all …]
D20-pci-vendor-model.hwdb75 ID_MODEL_FROM_DATABASE=PCAN-PCI CAN-Bus controller
78 ID_MODEL_FROM_DATABASE=PCAN-PCI CAN-Bus controller (2 Channel CAN Bus SJC1000)
81 ID_MODEL_FROM_DATABASE=PCAN-PCI CAN-Bus controller (2 Channel CAN Bus SJC1000 (Optically Isolated))
4008 ID_MODEL_FROM_DATABASE=SB7x0/SB8x0/SB9x0 LPC host controller
4011 ID_MODEL_FROM_DATABASE=SB7x0/SB8x0/SB9x0 LPC host controller (A785GM-M)
4014 ID_MODEL_FROM_DATABASE=SB7x0/SB8x0/SB9x0 LPC host controller (ProLiant MicroServer N36L)
4017 ID_MODEL_FROM_DATABASE=SB7x0/SB8x0/SB9x0 LPC host controller (Pavilion DM1Z-3000)
4020 ID_MODEL_FROM_DATABASE=SB7x0/SB8x0/SB9x0 LPC host controller (M3A78-EH Motherboard)
4023 ID_MODEL_FROM_DATABASE=SB7x0/SB8x0/SB9x0 LPC host controller (M5A88-V EVO)
4026 ID_MODEL_FROM_DATABASE=SB7x0/SB8x0/SB9x0 LPC host controller (N15235/A74MX mainboard / AMD SB700)
[all …]
/systemd-251/src/core/
Ddbus-scope.c46 …SD_BUS_PROPERTY("Controller", "s", NULL, offsetof(Scope, controller), SD_BUS_VTABLE_PROPERTY_EMITS…
135 const char *controller; in bus_scope_set_transient_property() local
142 r = sd_bus_message_read(message, "s", &controller); in bus_scope_set_transient_property()
146 if (!isempty(controller) && !sd_bus_service_name_is_valid(controller)) in bus_scope_set_transient_property()
147 …ror_setf(error, SD_BUS_ERROR_INVALID_ARGS, "Controller '%s' is not a valid bus name.", controller); in bus_scope_set_transient_property()
150 r = free_and_strdup(&s->controller, empty_to_null(controller)); in bus_scope_set_transient_property()
209 if (!s->controller) in bus_scope_send_request_stop()
225 return sd_bus_send_to(UNIT(s)->manager->api_bus, m, s->controller, NULL); in bus_scope_send_request_stop()
233 if (s->controller) { in on_controller_gone()
234 log_unit_debug(UNIT(s), "Controller %s disappeared from bus.", s->controller); in on_controller_gone()
[all …]
Dscope.c49 s->controller = mfree(s->controller); in scope_done()
477 if (s->controller) in scope_serialize()
478 (void) serialize_item(f, "controller", s->controller); in scope_serialize()
514 r = free_and_strdup(&s->controller, value); in scope_deserialize_item()
606 s->controller = mfree(s->controller); in scope_abandon()
Dscope.h31 char *controller; member
/systemd-251/src/shared/
Dcgroup-setup.c235 int cg_trim(const char *controller, const char *path, bool delete_root) { in cg_trim() argument
240 assert(controller); in cg_trim()
242 r = cg_get_path(controller, path, NULL, &fs); in cg_trim()
273 if (q > 0 && streq(controller, SYSTEMD_CGROUP_CONTROLLER)) in cg_trim()
282 int cg_create(const char *controller, const char *path) { in cg_create() argument
286 r = cg_get_path_and_check(controller, path, NULL, &fs); in cg_create()
304 if (r > 0 && streq(controller, SYSTEMD_CGROUP_CONTROLLER)) { in cg_create()
313 int cg_create_and_attach(const char *controller, const char *path, pid_t pid) { in cg_create_and_attach() argument
318 r = cg_create(controller, path); in cg_create_and_attach()
322 q = cg_attach(controller, path, pid); in cg_create_and_attach()
[all …]
Dmount-setup.c239 static const char *join_with(const char *controller) { in join_with() argument
247 assert(controller); in join_with()
254 if (streq(controller, *x)) in join_with()
256 if (streq(controller, *y)) in join_with()
302 _cleanup_free_ char *options = NULL, *controller = NULL, *where = NULL; in mount_cgroup_controllers() local
311 controller = set_steal_first(controllers); in mount_cgroup_controllers()
312 if (!controller) in mount_cgroup_controllers()
316 other_controller = join_with(controller); in mount_cgroup_controllers()
325 if (strcmp(controller, other_controller) < 0) in mount_cgroup_controllers()
326 options = strjoin(controller, ",", other_controller); in mount_cgroup_controllers()
[all …]
Dcgroup-setup.h18 int cg_trim(const char *controller, const char *path, bool delete_root);
20 int cg_create(const char *controller, const char *path);
21 int cg_attach(const char *controller, const char *path, pid_t pid);
22 int cg_attach_fallback(const char *controller, const char *path, pid_t pid);
23 int cg_create_and_attach(const char *controller, const char *path, pid_t pid);
Dcgroup-show.c337 int show_cgroup(const char *controller, in show_cgroup() argument
347 r = cg_get_path(controller, path, NULL, &p); in show_cgroup()
355 const char *controller, in show_extra_pids() argument
384 r = cg_pid_get_path(controller, pids[i], &k); in show_extra_pids()
400 const char *controller, in show_cgroup_and_extra() argument
412 r = show_cgroup(controller, path, prefix, n_columns, flags); in show_cgroup_and_extra()
416 … return show_extra_pids(controller, path, prefix, n_columns, extra_pids, n_extra_pids, flags); in show_cgroup_and_extra()
Dcgroup-show.h13 int show_cgroup(const char *controller, const char *path, const char *prefix, size_t n_columns, Out…
15 int show_cgroup_and_extra(const char *controller, const char *path, const char *prefix, size_t n_co…
/systemd-251/src/nspawn/
Dnspawn-cgroup.c247 const char *controller, in mount_legacy_cgroup_hierarchy() argument
266 if (streq(controller, SYSTEMD_CGROUP_CONTROLLER_HYBRID)) { in mount_legacy_cgroup_hierarchy()
269 } else if (streq(controller, SYSTEMD_CGROUP_CONTROLLER_LEGACY)) { in mount_legacy_cgroup_hierarchy()
274 opts = controller; in mount_legacy_cgroup_hierarchy()
342 _cleanup_free_ const char *controller = NULL; in mount_legacy_cgns_supported() local
344 controller = set_steal_first(controllers); in mount_legacy_cgns_supported()
345 if (!controller) in mount_legacy_cgns_supported()
348 r = mount_legacy_cgroup_hierarchy("", controller, controller, !userns); in mount_legacy_cgns_supported()
356 c = controller; in mount_legacy_cgns_supported()
366 if (streq(controller, tok)) in mount_legacy_cgns_supported()
[all …]
/systemd-251/src/cgtop/
Dcgtop.c147 const char *controller, in process() argument
157 assert(controller); in process()
193 if (streq(controller, SYSTEMD_CGROUP_CONTROLLER) && in process()
198 r = cg_enumerate_processes(controller, path, &f); in process()
216 } else if (streq(controller, "pids") && arg_count == COUNT_PIDS) { in process()
225 r = cg_get_path(controller, path, "pids.current", &p); in process()
243 } else if (streq(controller, "memory")) { in process()
253 r = cg_get_path(controller, path, "memory.current", &p); in process()
255 r = cg_get_path(controller, path, "memory.usage_in_bytes", &p); in process()
273 } else if ((streq(controller, "io") && all_unified) || in process()
[all …]
/systemd-251/src/cgls/
Dcgls.c176 static void show_cg_info(const char *controller, const char *path) { in show_cg_info() argument
178 if (cg_all_unified() == 0 && controller && !streq(controller, SYSTEMD_CGROUP_CONTROLLER)) in show_cg_info()
179 printf("Controller %s; ", controller); in show_cg_info()
247 const char *controller, *path; in run() local
262 controller = c ?: SYSTEMD_CGROUP_CONTROLLER; in run()
273 show_cg_info(controller, path); in run()
275 q = show_cgroup(controller, path, NULL, 0, arg_output_flags); in run()
/systemd-251/src/login/
Dlogind-session.c336 if (s->controller) { in session_save()
337 fprintf(f, "CONTROLLER=%s\n", s->controller); in session_save()
413 *controller = NULL, in session_load() local
445 "CONTROLLER", &controller, in session_load()
594 if (controller) { in session_load()
595 if (bus_name_has_owner(s->manager->bus, controller, NULL) > 0) { in session_load()
596 session_set_controller(s, controller, false, false); in session_load()
1318 return streq_ptr(s->controller, sender); in session_is_controller()
1325 if (!s->controller) in session_release_controller()
1328 name = s->controller; in session_release_controller()
[all …]
Dlogind-session-device.c40 if (!sd->session->controller) in session_device_notify()
55 r = sd_bus_message_set_destination(m, sd->session->controller); in session_device_notify()
Dlogind-session.h114 char *controller; member
/systemd-251/test/fuzz/fuzz-udev-database/
Dsample.txt215 E:ID_PCI_CLASS_FROM_DATABASE=Communication controller
216 E:ID_PCI_CLASS_FROM_DATABASE=Display controller
217 E:ID_PCI_CLASS_FROM_DATABASE=Mass storage controller
218 E:ID_PCI_CLASS_FROM_DATABASE=Multimedia controller
219 E:ID_PCI_CLASS_FROM_DATABASE=Network controller
220 E:ID_PCI_CLASS_FROM_DATABASE=Serial bus controller
224 E:ID_PCI_INTERFACE_FROM_DATABASE=VGA controller
227 E:ID_PCI_SUBCLASS_FROM_DATABASE=Communication controller
230 E:ID_PCI_SUBCLASS_FROM_DATABASE=Network controller
232 E:ID_PCI_SUBCLASS_FROM_DATABASE=SATA controller
[all …]
/systemd-251/docs/
DCGROUP_DELEGATION.md96 `/sys/fs/cgroup/<controller>/`. On top of that systemd manages its own cgroup
116 cgroup hierarchies for each controller are orthogonal from each other. In
119 no controller usage is required for them). The fact that systemd keeps these
123 available controller hierarchies. E.g. if we talk about the cgroup `/foo/bar/`
126 Note that in cgroup v2 the controller hierarchies aren't orthogonal, hence
228 controller hierarchies. Delegation to less privileged processes is not safe
236 boolean. However, since v236 it optionally takes a list of controller names
240 controllers delegated (for example, because the controller is not available on
367 mounts all controller hierarchies it finds available in the kernel). If you
385 specific controller on cgroup v1 you can still make use of it for delegation,
[all …]
/systemd-251/src/test/
Dtest-condition.c179 for (CGroupController controller = 0; controller < _CGROUP_CONTROLLER_MAX; controller++) { in TEST() local
180 const char *local_controller_name = cgroup_controller_to_string(controller); in TEST()
182 if (system_mask & CGROUP_CONTROLLER_TO_MASK(controller)) { in TEST()
/systemd-251/src/udev/
Dudev-builtin-path_id.c463 unsigned controller, disk; in handle_cciss() local
467 if (sscanf(str, "c%ud%u%*s", &controller, &disk) != 2) in handle_cciss()
/systemd-251/rules.d/
D71-seat.rules.in26 SUBSYSTEM=="pci", ENV{ID_PCI_CLASS_FROM_DATABASE}=="Display controller", \

12