Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:alloc_cgroup_ns

Proto:static struct cgroup_namespace *alloc_cgroup_ns(void)

Type:struct cgroup_namespace

Parameter:Nothing

27  new_ns = 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).
28  If Not new_ns Then Return ERR_PTR( - ENOMEM)
30  ret = ns_alloc_inum( & ns)
31  If ret Then
32  kfree(new_ns)
33  Return ERR_PTR(ret)
35  _set - set a refcount's value*@r: the refcount*@n: value to which the refcount will be set
36  ops = amespace.c
37  Return new_ns
Caller
NameDescribe
copy_cgroup_ns