Function report |
Source Code:fs\fhandle.c |
Create Date:2022-07-28 20:31:17 |
| Last Modify:2020-03-12 14:18:49 | Copyright©Brick |
| home page | Tree |
| Annotation kernel can get tool activity | Download SCCT | Chinese |
Name:do_handle_open
Proto:static long do_handle_open(int mountdirfd, struct file_handle __user *ufh, int open_flag)
Type:long
Parameter:
| Type | Parameter | Name |
|---|---|---|
| int | mountdirfd | |
| struct file_handle __user * | ufh | |
| int | open_flag |
| 218 | retval = 0 |
| 223 | retval = handle_to_path(mountdirfd, ufh, & path) |
| 227 | fd = get_unused_fd_flags(open_flag) |
| 228 | If fd < 0 Then |
| 230 | Return fd |
| 232 | file = file_open_root(dentry, mnt, "", open_flag, 0) |
| 234 | put_unused_fd(fd) |
| 236 | Else |
| 242 | Return retval |
| Name | Describe |
|---|---|
| SYSCALL_DEFINE3 | sys_open_by_handle_at: Open the file handle*@mountdirfd: directory file descriptor*@handle: file handle to be opened*@flags: open flags.*@mountdirfd indicate the directory file descriptor* of the mount point. file handle is decoded relative |
| COMPAT_SYSCALL_DEFINE3 | Exactly like fs/open.c:sys_open_by_handle_at(), except that it* doesn't set the O_LARGEFILE flag. |
| 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 |