Function report |
Source Code:fs\namei.c |
Create Date:2022-07-28 20:05:10 |
| Last Modify:2020-03-12 14:18:49 | Copyright©Brick |
| home page | Tree |
| Annotation kernel can get tool activity | Download SCCT | Chinese |
Name:may_open
Proto:static int may_open(const struct path *path, int acc_mode, int flag)
Type:int
Parameter:
| Type | Parameter | Name |
|---|---|---|
| const struct path * | path | |
| int | acc_mode | |
| int | flag |
| 2900 | Case & == S_IFLNK |
| 2901 | Return -ELOOP |
| 2902 | Case & == S_IFDIR |
| 2906 | Case & == S_IFBLK |
| 2907 | Case & == S_IFCHR |
| 2908 | If Not may_open_dev(path) Then Return -EACCES |
| 2911 | Case & == S_IFIFO |
| 2912 | Case & == S_IFSOCK |
| 2932 | If flag & O_NOATIME && Not inode_owner_or_capable(inode) Then Return -EPERM |
| 2935 | Return 0 |
| Name | Describe |
|---|---|
| atomic_open | Attempt to atomically look up, create and open a file from a negative* dentry |
| do_last | Handle the last step of open() |
| do_tmpfile |
| 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 |