Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:pids_css_alloc

Proto:static struct cgroup_subsys_state *pids_css_alloc(struct cgroup_subsys_state *parent)

Type:struct cgroup_subsys_state

Parameter:

TypeParameterName
struct cgroup_subsys_state *parent
72  pids = 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).
73  If Not pids Then Return ERR_PTR( - ENOMEM)
76  atomic64_set( & * Use 64-bit types so that we can safely represent "max" as * %PIDS_MAX = (%PID_MAX_LIMIT + 1)., 0)
77  atomic64_set( & limit, PIDS_MAX)
78  atomic64_set( & Number of times fork failed because limit was hit. , 0)
79  Return css