函数逻辑报告 |
Source Code:fs\locks.c |
Create Date:2022-07-29 10:59:19 |
Last Modify:2020-03-12 14:18:49 | Copyright©Brick |
首页 | 函数Tree |
注解内核,赢得工具 | 下载SCCT | English |
函数名称:Fill in a file_lock structure with an appropriate FLOCK lock.
函数原型:static struct file_lock *flock_make_lock(struct file *filp, unsigned int cmd, struct file_lock *fl)
返回类型:struct file_lock
参数:
类型 | 参数 | 名称 |
---|---|---|
struct file * | filp | |
unsigned int | cmd | |
struct file_lock * | fl |
481 | type等于flock_translate_cmd(cmd) |
486 | 如果(fl == NULL)则 |
490 | 否则 |
491 | locks_init_lock(fl) |
499 | fl_end等于OFFSET_MAX |
501 | 返回:fl |
名称 | 描述 |
---|---|
SYSCALL_DEFINE2 | sys_flock: - flock() system call.*@fd: the file descriptor to lock.*@cmd: the type of lock to apply.* Apply a %FL_FLOCK style lock to an open file descriptor.* The @cmd can be one of:* - %LOCK_SH -- a shared lock.* - %LOCK_EX -- an exclusive lock. |
locks_remove_flock | The i_flctx must be valid when calling into here |
源代码转换工具 开放的插件接口 | X |
---|---|
支持:c/c++/esqlc/java Oracle/Informix/Mysql 插件可实现:逻辑报告 代码生成和批量转换代码 |