| Function report | 
| Source Code: fs\file.c | Create Date:2022-07-28 20:08:33 | 
| Last Modify:2020-03-12 14:18:49 | Copyright©Brick | 
| home page | Tree | 
| Annotation kernel can get tool activity | Download SCCT | Chinese | 
Name:iterate_fd
Proto:int iterate_fd(struct files_struct *files, unsigned n, int (*f)(const void *, struct file *, unsigned ), const void *p)
Type:int
Parameter:
| Type | Parameter | Name | 
|---|---|---|
| struct files_struct * | files | |
| unsigned | n | |
| int (* | f | |
| const void * | p | 
| 1001 | res = 0 | 
| 1002 | If Not files Then Return 0 | 
| 1007 | file = rcu_dereference_check_fdtable(files, current fd array [n]) | 
| 1008 | If Not file Then Continue | 
| 1011 | If res Then Break | 
| 1015 | Return res | 
| Name | Describe | 
|---|---|
| flush_unauthorized_files | Derived from fs/exec.c:flush_old_files. | 
| aa_inherit_files | ased on selinux's flush_unauthorized_files | 
| 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 |