Function report |
Source Code:fs\file_table.c |
Create Date:2022-07-28 20:01:52 |
| 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 - allocate and initialize a 'struct file'*@path: the (dentry, vfsmount) pair for the new file*@flags: O_... flags with which the new file will be opened*@fop: the 'struct file_operations' for the new file
Proto:static struct file *alloc_file(const struct path *path, int flags, const struct file_operations *fop)
Type:struct file
Parameter:
| Type | Parameter | Name |
|---|---|---|
| const struct path * | path | |
| int | flags | |
| const struct file_operations * | fop |
| 201 | If f_mode & le is open for reading && Value is more likely to compile time(read || read_iter) Then f_mode |= Has read method(s) |
| 204 | If f_mode & le is open for writing && Value is more likely to compile time(write || write_iter) Then f_mode |= Has write method(s) |
| 207 | f_mode |= FMODE_OPENED |
| 209 | If (f_mode & (le is open for reading | le is open for writing )) == le is open for reading Then i_readcount_inc( Where the name belongs to - NULL is * negative ) |
| 211 | Return file |
| Name | Describe |
|---|---|
| alloc_file_pseudo | |
| alloc_file_clone |
| 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 |