函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:sb_permission - Check superblock-level permissions*@sb: Superblock of inode to check permission on*@inode: Inode to check permission on*@mask: Right to check for (%MAY_READ, %MAY_WRITE, %MAY_EXEC)

函数原型:static int sb_permission(struct super_block *sb, struct inode *inode, int mask)

返回类型:int

参数:

类型参数名称
struct super_block *sb
struct inode *inode
intmask
404  如果此条件成立可能性小(为编译器优化)(mask & MAY_WRITE)则
405  mode等于i_mode
408  如果sb_rdonly(sb)且S_ISREG(mode)或S_ISDIR(mode)或S_ISLNK(mode)的值则返回:负EROFS
411  返回:0
调用者
名称描述
inode_permissionde_permission - Check for access rights to a given inode*@inode: Inode to check permission on*@mask: Right to check for (%MAY_READ, %MAY_WRITE, %MAY_EXEC)* Check for read/write/execute permissions on an inode