| 函数逻辑报告 | 
| Source Code: fs\namei.c | Create Date:2022-07-29 10:34:49 | 
| Last Modify:2020-03-12 14:18:49 | Copyright©Brick | 
| 首页 | 函数Tree | 
| 注解内核,赢得工具 | 下载SCCT | English | 
函数名称:We _really_ want to just do "generic_permission()" without* even looking at the inode->i_op values. So we keep a cache* flag in inode->i_opflags, that says "this has not special* permission function, use the fast case".
函数原型:static inline int do_inode_permission(struct inode *inode, int mask)
返回类型:int
参数:
| 类型 | 参数 | 名称 | 
|---|---|---|
| struct inode * | inode | |
| int | mask | 
| 382 | 如果此条件成立可能性小(为编译器优化)(!(i_opflags & IOP_FASTPERM))则 | 
| 383 | 如果此条件成立可能性大(为编译器优化)(permission)则返回:permission(inode, mask) | 
| 387 | 加自旋锁 | 
| 388 | i_opflags或等于IOP_FASTPERM | 
| 389 | 自旋锁解锁 | 
| 名称 | 描述 | 
|---|---|
| inode_permission | de_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 | 
| 源代码转换工具 开放的插件接口 | X | 
|---|---|
| 支持:c/c++/esqlc/java Oracle/Informix/Mysql 插件可实现:逻辑报告 代码生成和批量转换代码 |