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:get_acl

Proto:struct posix_acl *get_acl(struct inode *inode, int type)

Type:struct posix_acl

Parameter:

TypeParameterName
struct inode *inode
inttype
108  acl = get_cached_acl(inode, type)
109  If Not is_uncached_acl(acl) Then Return acl
112  If Not IS_POSIXACL(inode) Then Return NULL
115  sentinel = uncached_acl_sentinel(current process)
116  p = acl_by_type(inode, type)
126  If cmpxchg(p, ACL_NOT_CACHED, sentinel) != ACL_NOT_CACHED Then If Not get_acl Then
138  set_cached_acl(inode, type, NULL)
139  Return NULL
141  acl = get_acl(inode, type)
143  If IS_ERR(acl) Then
148  cmpxchg(p, sentinel, ACL_NOT_CACHED)
149  Return acl
155  Duplicate an ACL handle.
156  If Value for the false possibility is greater at compile time(cmpxchg(p, sentinel, acl) != sentinel) Then Free an ACL handle.
158  Return acl
Caller
NameDescribe
posix_acl_chmod
posix_acl_create
posix_acl_xattr_get