函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:cgroup_pidlist_find

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

返回类型:struct cgroup_pidlist

参数:

类型参数名称
struct cgroup *cgrp
enum cgroup_filetypetype
286  ns等于取进程的空间
288  lockdep_assert_held( & pidlist_mutex)
290  list_for_each_entry - iterate over list of given type*@pos: the type * to use as a loop cursor.*@head: the head for your list.*@member: the name of the list_head within the struct.(l, & * list of pidlists, up to two for each namespace (one for procs, one * for tasks); created on demand., links)
291  如果type恒等于typens恒等于ns则返回:l
293  返回:NULL
调用者
名称描述
cgroup_pidlist_find_created 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.
cgroup_pidlist_startseq_file methods for the tasks/procs files. The seq_file position is the* next pid to display; the seq_file iterator is a pointer to the pid* in the cgroup->l->list array.