Function report | 
Source Code:fs\file_table.c | 
Create Date:2022-07-28 20:01:51 | 
| Last Modify:2020-03-18 10:20:10 | Copyright©Brick | 
| home page | Tree | 
| Annotation kernel can get tool activity | Download SCCT | Chinese | 
Name:__alloc_file
Proto:static struct file *__alloc_file(int flags, const struct cred *cred)
Type:struct file
Parameter:
| Type | Parameter | Name | 
|---|---|---|
| int | flags | |
| const struct cred * | cred | 
| 102 | If Value for the false possibility is greater at compile time(!f) Then Return ERR_PTR( - ENOMEM) | 
| 106 | error = security_file_alloc(f) | 
| 108 | file_free_rcu( & fu_rcuhead) | 
| 112 | atomic_long_set( & f_count, 1) | 
| 113 | rwlock_init( & lock) | 
| 114 | Process spin lock initialization( & * Protects f_ep_links, f_flags. * Must not be taken from IRQ context.) | 
| 115 | mutex_init - initialize the mutex*@mutex: the mutex to be initialized* Initialize the mutex to unlocked state.* It is not allowed to initialize an already locked mutex.( & f_pos_lock) | 
| 118 | f_mode = OPEN_FMODE(flags) | 
| 121 | Return f | 
| Name | Describe | 
|---|---|
| alloc_empty_file | Find an unused file structure and return a pointer to it | 
| alloc_empty_file_noaccount | Variant of alloc_empty_file() that doesn't check and modify nr_files.* Should not be used unless there's a very good reason to do so. | 
| 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  |