kernel:control_groups
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
kernel:control_groups [2020/07/22 11:47] – old revision restored (2017/04/06 10:37) 204.12.220.106 | kernel:control_groups [2020/07/22 18:05] (current) – old revision restored (2020/07/20 16:09) 207.244.157.10 | ||
---|---|---|---|
Line 273: | Line 273: | ||
</ | </ | ||
- | Note that it is PID, not PIDs. You can only attach ONE task at a time. If you have several tasks to attach, you have to do it one after another: | + | <WRAP info> |
+ | **NOTE: | ||
+ | </ | ||
<code bash> | <code bash> | ||
Line 297: | Line 299: | ||
When passing a name=< | When passing a name=< | ||
- | The name of the subsystem appears as part of the hierarchy description in / | + | The name of the subsystem appears as part of the hierarchy description in **/ |
==== Notification API ==== | ==== Notification API ==== | ||
Line 314: | Line 316: | ||
To unregister notification handler just close eventfd. | To unregister notification handler just close eventfd. | ||
- | NOTE: Support of notifications should be implemented for the control file. See documentation for the subsystem. | + | <WRAP info> |
+ | **NOTE**: Support of notifications should be implemented for the control file. See documentation for the subsystem. | ||
+ | </ | ||
===== Kernel API ===== | ===== Kernel API ===== | ||
Line 321: | Line 324: | ||
==== Overview ==== | ==== Overview ==== | ||
- | Each kernel subsystem that wants to hook into the generic cgroup system needs to create a cgroup_subsys object. | + | Each kernel subsystem that wants to hook into the generic cgroup system needs to create a **cgroup_subsys** object. |
Other fields in the cgroup_subsys object include: | Other fields in the cgroup_subsys object include: | ||
Line 334: | Line 337: | ||
==== Synchronization ==== | ==== Synchronization ==== | ||
- | There is a global mutex, cgroup_mutex, | + | There is a global mutex, |
See kernel/ | See kernel/ | ||
- | Subsystems can take/ | + | Subsystems can take/ |
Accessing a task's cgroup pointer may be done in the following ways: | Accessing a task's cgroup pointer may be done in the following ways: |
kernel/control_groups.1595418438.txt.gz · Last modified: 2020/07/22 11:47 by 204.12.220.106