函数逻辑报告 |
Source Code:fs\fhandle.c |
Create Date:2022-07-29 11:06:36 |
Last Modify:2020-03-12 14:18:49 | Copyright©Brick |
首页 | 函数Tree |
注解内核,赢得工具 | 下载SCCT | English |
函数名称:do_sys_name_to_handle
函数原型:static long do_sys_name_to_handle(struct path *path, struct file_handle __user *ufh, int __user *mnt_id)
返回类型:long
参数:
类型 | 参数 | 名称 |
---|---|---|
struct path * | path | |
struct file_handle __user * | ufh | |
int __user * | mnt_id |
24 | struct file_handle * handle = NULL |
30 | 如果非s_export_op或非fh_to_dentry则返回:负EOPNOTSUPP |
34 | 如果copy_from_user( & f_handle, ufh, sizeof(structfile_handle))则返回:负EFAULT |
46 | handle_dwords等于handle_bytes右移2位 |
49 | retval等于exportfs_encode_fh(dentry, (structfid * ) file identifier , & handle_dwords, 0) |
52 | handle_type等于retval |
56 | 如果handle_bytes大于handle_bytes或retval恒等于FILEID_INVALID或retval恒等于负ENOSPC则 |
67 | handle_bytes等于0 |
69 | 否则retval等于0 |
72 | 如果put_user - Write a simple value into user space( mount identifier , mnt_id)或copy_to_user(ufh, handle, sizeof(structfile_handle) + handle_bytes)则retval等于负EFAULT |
76 | 释放内存 |
77 | 返回:retval |
名称 | 描述 |
---|---|
SYSCALL_DEFINE5 | sys_name_to_handle_at: convert name to handle*@dfd: directory relative to which name is interpreted if not absolute*@name: name that should be converted to handle |
源代码转换工具 开放的插件接口 | X |
---|---|
支持:c/c++/esqlc/java Oracle/Informix/Mysql 插件可实现:逻辑报告 代码生成和批量转换代码 |