Function report |
Source Code:fs\libfs.c |
Create Date:2022-07-28 20:10:23 |
| Last Modify:2020-03-12 14:18:49 | Copyright©Brick |
| home page | Tree |
| Annotation kernel can get tool activity | Download SCCT | Chinese |
Name:Directory is locked and all positive dentries in it are safe, since* for ramfs-type trees they can't go away without unlink() or rmdir(),* both impossible due to the lock on directory.
Proto:int dcache_readdir(struct file *file, struct dir_context *ctx)
Type:int
Parameter:
| Type | Parameter | Name |
|---|---|---|
| struct file * | file | |
| struct dir_context * | ctx |
| 188 | anchor = our children |
| 192 | If Not dir_emit_dots(file, ctx) Then Return 0 |
| 197 | Else if Not list_empty - tests whether a list is empty*@head: the list to test. Then p = child of parent list |
| 199 | Else Return 0 |
| 203 | If Not dir_emit(ctx, name, len, i_ino, Relationship between i_mode and the DT_xxx types ) Then Break |
| 206 | pos++ |
| 207 | p = child of parent list |
| 210 | If next Then list_move_tail - delete from one list and add as another's tail*@list: the entry to move*@head: the head that will follow our entry |
| 214 | spin_unlock( & d_lock) |
| 217 | Return 0 |
| 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 |