函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:kernel\cgroup\cgroup.c Create Date:2022-07-27 12:09:44
Last Modify:2020-03-12 14:18:49 Copyright©Brick
首页 函数Tree
注解内核,赢得工具下载SCCTEnglish

函数名称:cgroup_init_root_id

函数原型:static int cgroup_init_root_id(struct cgroup_root *root)

返回类型:int

参数:

类型参数名称
struct cgroup_root *root
1292  lockdep_assert_held( & cgroup_mutex is the master lock)
1294  id等于dr_alloc_cyclic() - Allocate an ID cyclically.*@idr: IDR handle.*@ptr: Pointer to be associated with the new ID.*@start: The minimum ID (inclusive).*@end: The maximum ID (exclusive).*@gfp: Memory allocation flags.
1295  如果id小于0则返回:id
1298  Unique id for this hierarchy. 等于id
1299  返回:0
调用者
名称描述
cgroup_setup_root