Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:simple_set_acl

Proto:int simple_set_acl(struct inode *inode, struct posix_acl *acl, int type)

Type:int

Parameter:

TypeParameterName
struct inode *inode
struct posix_acl *acl
inttype
929  If type == a_type field in acl_user_posix_entry_t Then
930  error = posix_acl_update_mode - update mode in set_acl*@inode: target inode*@mode_p: mode (pointer) for update*@acl: acl pointer* Update the file mode when setting an ACL: compute the new file permission* bits based on the ACL
932  If error Then Return error
936  i_ctime = rrent_time - Return FS time*@inode: inode.* Return the current time truncated to the time granularity supported by* the fs.* Note that inode and inode->sb cannot be NULL.* Otherwise, the function warns and returns time without truncation.
937  set_cached_acl(inode, type, acl)
938  Return 0