Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:kernel\audit_tree.c Create Date:2022-07-28 11:30:08
Last Modify:2022-05-22 16:43:11 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name:alloc_chunk

Proto:static struct audit_chunk *alloc_chunk(int count)

Type:struct audit_chunk

Parameter:

TypeParameterName
intcount
194  size = offsetof(structaudit_chunk, owners) + count * sizeof(structnode)
195  chunk = 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).
196  If Not chunk Then Return NULL
199  Initialization list head
200  Initialization list head
201  count = count
202  atomic_long_set( & refs, 1)
203  When i < count cycle
204  Initialization list head
205  index = i
207  Return chunk
Caller
NameDescribe
untag_chunk
create_chunkCall with group->mark_mutex held, releases it
tag_chunkhe first tagged inode becomes root of tree