函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:fs\posix_acl.c Create Date:2022-07-29 11:04:53
Last Modify:2020-03-12 14:18:49 Copyright©Brick
首页 函数Tree
注解内核,赢得工具下载SCCTEnglish

函数名称:Clone an ACL.

函数原型:static struct posix_acl *posix_acl_clone(const struct posix_acl *acl, gfp_t flags)

返回类型:struct posix_acl

参数:

类型参数名称
const struct posix_acl *acl
gfp_tflags
194  struct posix_acl * clone = NULL
196  如果acl
197  size等于sizeof(structposix_acl)加a_countsizeof(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  如果clone_set - set a refcount's value*@r: the refcount*@n: value to which the refcount will be set
203  返回:clone
调用者
名称描述
__posix_acl_create
__posix_acl_chmod
posix_acl_create