Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:aa_loaddata_alloc

Proto:struct aa_loaddata *aa_loaddata_alloc(size_t size)

Type:struct aa_loaddata

Parameter:

TypeParameterName
size_tsize
186  d = 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).
187  If (d == NULL) Then Return ERR_PTR( - ENOMEM)
189  Pointer to payload. If @compressed_size > 0, then this is the* compressed version of the payload, else it is the uncompressed* version (with the size indicated by @size). = kvzalloc(size, GFP_KERNEL)
190  If Not Pointer to payload. If @compressed_size > 0, then this is the* compressed version of the payload, else it is the uncompressed* version (with the size indicated by @size). Then
191  kfree(d)
192  Return ERR_PTR( - ENOMEM)
194  kref_init - initialize object.*@kref: object in question.
195  Initialization list head
197  Return d