Function report | 
Source Code:fs\readdir.c | 
Create Date:2022-07-28 20:06:35 | 
| Last Modify:2020-03-12 14:18:49 | Copyright©Brick | 
| home page | Tree | 
| Annotation kernel can get tool activity | Download SCCT | Chinese | 
Name:iterate_dir
Proto:int iterate_dir(struct file *file, struct dir_context *ctx)
Type:int
Parameter:
| Type | Parameter | Name | 
|---|---|---|
| struct file * | file | |
| struct dir_context * | ctx | 
| 42 | inode = file_inode(file) | 
| 43 | bool shared = false | 
| 45 | If iterate_shared Then shared = true | 
| 50 | res = security_file_permission(file, MAY_READ) | 
| 54 | If shared Then res = down_read_killable( & i_rwsem) | 
| 56 | Else res = lock for writing | 
| 62 | If Not IS_DEADDIR(inode) Then | 
| 64 | If shared Then res = iterate_shared(file, ctx) | 
| 70 | file_accessed(file) | 
| 72 | If shared Then inode_unlock_shared(inode) | 
| 74 | Else inode_unlock(inode) | 
| 76 | out : | 
| 77 | Return res | 
| Name | Describe | 
|---|---|
| SYSCALL_DEFINE3 | |
| SYSCALL_DEFINE3 | |
| ksys_getdents64 | |
| COMPAT_SYSCALL_DEFINE3 | |
| COMPAT_SYSCALL_DEFINE3 | 
| 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  |