Function report |
Source Code:kernel\cgroup\cgroup-v1.c |
Create Date:2022-07-28 11:13:09 |
| Last Modify:2020-03-12 14:18:49 | Copyright©Brick |
| home page | Tree |
| Annotation kernel can get tool activity | Download SCCT | Chinese |
Name:Notify userspace when a cgroup is released, by running the* configured release agent with the name of the cgroup (path* relative to the root of cgroup file system) as the argument
Proto:void cgroup1_release_agent(struct work_struct *work)
Type:void
Parameter:
| Type | Parameter | Name |
|---|---|---|
| struct work_struct * | work |
| 785 | pathbuf = Allocation memory |
| 790 | spin_lock_irq( & css_set_lock) |
| 791 | ret = cgroup_path_ns_locked(cgrp, pathbuf, # chars in a path name including nul , & cgroup namespace for init task ) |
| 792 | spin_unlock_irq( & css_set_lock) |
| 793 | If ret < 0 || ret >= # chars in a path name including nul Then Go to out |
| 798 | argv[2] = NULL |
| 801 | envp[0] = "HOME=/" |
| 802 | envp[1] = "PATH=/sbin:/bin:/usr/sbin:/usr/bin" |
| 803 | envp[2] = NULL |
| 807 | Go to out_free |
| 808 | out : |
| 810 | out_free : |
| Source code conversion tool public plug-in interface | X |
|---|---|
| Support c/c++/esqlc/java Oracle/Informix/Mysql Plug-in can realize: logical Report Code generation and batch code conversion |