函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:d the appropriate pidlist for our purpose (given procs vs tasks)* returns with the lock on that pidlist already held, and takes care* of the use count, or returns NULL with no locks held if we're out of* memory.

函数原型:static struct cgroup_pidlist *cgroup_pidlist_find_create(struct cgroup *cgrp, enum cgroup_filetype type)

返回类型:struct cgroup_pidlist

参数:

类型参数名称
struct cgroup *cgrp
enum cgroup_filetypetype
307  lockdep_assert_held( & pidlist_mutex)
309  l等于cgroup_pidlist_find(cgrp, type)
310  如果l则返回:l
314  l等于分配内存并置零
315  如果非l则返回:l
318  INIT_DELAYED_WORK( & r delayed destruction , cgroup_pidlist_destroy_work_fn)
319  type等于type
321  ns等于get_pid_ns(取进程的空间)
322  pointer to the cgroup we belong to, for list removal purposes 等于cgrp
323  添加链表项
324  返回:l
调用者
名称描述
pidlist_array_loadLoad a cgroup's pidarray with either procs' tgids or tasks' pids