函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:Create an ACL representing the file mode permission bits of an inode.

函数原型:struct posix_acl *posix_acl_from_mode(umode_t mode, gfp_t flags)

返回类型:struct posix_acl

参数:

类型参数名称
umode_tmode
gfp_tflags
327  acl等于Allocate a new ACL with the specified number of entries.
328  如果非acl则返回:错误号
331  e_tag等于_tag entry in struct posix_acl_entry
332  e_perm等于mode按位与S_IRWXU的值右移6位
334  e_tag等于ACL_GROUP_OBJ
335  e_perm等于mode按位与S_IRWXG的值右移3位
337  e_tag等于ACL_OTHER
338  e_perm等于mode按位与S_IRWXO
339  返回:acl