Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:__cgroup_procs_start

Proto:static void *__cgroup_procs_start(struct seq_file *s, loff_t *pos, unsigned int iter_flags)

Type:void

Parameter:

TypeParameterName
struct seq_file *s
loff_t *pos
unsigned intiter_flags
4609  of = private
4610  cgrp = PI: the cgroup that this css is attached to
4611  it = priv
4617  If Not it Then
4618  If WARN_ON_ONCE(( * pos)++) Then Return ERR_PTR( - EINVAL)
4621  it = kzalloc - allocate memory. The memory is set to zero.*@size: how many bytes of memory are required.*@flags: the type of memory to allocate (see kmalloc).
4622  If Not it Then Return ERR_PTR( - ENOMEM)
4624  priv = it
4625  ss_task_iter_start - initiate task iteration*@css: the css to walk tasks of*@flags: CSS_TASK_ITER_* flags*@it: the task iterator to use* Initiate iteration through the tasks of @css
4626  Else if Not pos ++ Then
4627  ss_task_iter_end - finish task iteration*@it: the task iterator to finish* Finish task iteration started by css_task_iter_start().
4628  ss_task_iter_start - initiate task iteration*@css: the css to walk tasks of*@flags: CSS_TASK_ITER_* flags*@it: the task iterator to use* Initiate iteration through the tasks of @css
4631  Return cgroup_procs_next(s, NULL, NULL)
Caller
NameDescribe
cgroup_procs_start
cgroup_threads_start