Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:security\apparmor\include\file.h Create Date:2022-07-28 19:48:54
Last Modify:2020-03-12 14:18:49 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name:aa_alloc_file_ctx - allocate file_ctx*@label: initial label of task creating the file*@gfp: gfp flags for allocation* Returns: file_ctx or NULL on failure

Proto:static inline struct aa_file_ctx *aa_alloc_file_ctx(struct aa_label *label, gfp_t gfp)

Type:struct aa_file_ctx

Parameter:

TypeParameterName
struct aa_label *label
gfp_tgfp
59  ctx = 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).
60  If ctx Then
61  Process spin lock initialization( & lock)
62  cu_assign_pointer() - assign to RCU-protected pointer*@p: pointer to assign to*@v: value to assign (publish)* Assigns the specified value to the specified RCU-protected* pointer, ensuring that any concurrent RCU readers will see* any prior initialization(label, aa_get_label(label))
64  Return ctx