Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:kernel\cgroup\cgroup-v1.c Create Date:2022-07-28 11:12:45
Last Modify:2020-03-12 14:18:49 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name:cgroup_pidlist_find

Proto:static struct cgroup_pidlist *cgroup_pidlist_find(struct cgroup *cgrp, enum cgroup_filetype type)

Type:struct cgroup_pidlist

Parameter:

TypeParameterName
struct cgroup *cgrp
enum cgroup_filetypetype
286  ns = task_active_pid_ns(current process)
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  If type == type && ns == ns Then Return l
293  Return NULL
Caller
NameDescribe
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.