Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:Clone an ACL.

Proto:static struct posix_acl *posix_acl_clone(const struct posix_acl *acl, gfp_t flags)

Type:struct posix_acl

Parameter:

TypeParameterName
const struct posix_acl *acl
gfp_tflags
194  struct posix_acl * clone = NULL
196  If acl Then
197  size = sizeof(structposix_acl) + a_count * sizeof(structposix_acl_entry)
199  clone = kmemdup - duplicate region of memory*@src: memory region to duplicate*@len: memory region length*@gfp: GFP mask to use* Return: newly allocated copy of @src or %NULL in case of error
200  If clone Then _set - set a refcount's value*@r: the refcount*@n: value to which the refcount will be set
203  Return clone
Caller
NameDescribe
__posix_acl_create
__posix_acl_chmod
posix_acl_create