Function report |
Source Code:fs\namei.c |
Create Date:2022-07-28 20:05:00 |
Last Modify:2020-03-12 14:18:49 | Copyright©Brick |
home page | Tree |
Annotation kernel can get tool activity | Download SCCT | Chinese |
Name: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".
Proto:static inline int do_inode_permission(struct inode *inode, int mask)
Type:int
Parameter:
Type | Parameter | Name |
---|---|---|
struct inode * | inode | |
int | mask |
382 | If Value for the false possibility is greater at compile time(!(i_opflags & IOP_FASTPERM)) Then |
383 | If Value is more likely to compile time(permission) Then Return permission(inode, mask) |
387 | spin_lock( & _blocks, i_bytes, maybe i_size ) |
388 | i_opflags |= IOP_FASTPERM |
Name | Describe |
---|---|
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 |
Source code conversion tool public plug-in interface | X |
---|---|
Support c/c++/esqlc/java Oracle/Informix/Mysql Plug-in can realize: logical Report Code generation and batch code conversion |