函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:simple_set_acl

函数原型:int simple_set_acl(struct inode *inode, struct posix_acl *acl, int type)

返回类型:int

参数:

类型参数名称
struct inode *inode
struct posix_acl *acl
inttype
929  如果type恒等于a_type field in acl_user_posix_entry_t
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  如果error则返回: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  返回:0