函数逻辑报告 |
Source Code:fs\locks.c |
Create Date:2022-07-29 10:59:20 |
Last Modify:2020-03-12 14:18:49 | Copyright©Brick |
首页 | 函数Tree |
注解内核,赢得工具 | 下载SCCT | English |
函数名称:flock64_to_posix_lock
函数原型:static int flock64_to_posix_lock(struct file *filp, struct file_lock *fl, struct flock64 *l)
返回类型:int
参数:
类型 | 参数 | 名称 |
---|---|---|
struct file * | filp | |
struct file_lock * | fl | |
struct flock64 * | l |
530 | 退出 |
531 | 默认 |
532 | 返回:负EINVAL |
534 | 如果l_start大于OFFSET_MAX减fl_start则返回:负EOVERFLOW |
542 | 如果l_len大于0则 |
547 | 否则如果l_len小于0则 |
552 | 否则fl_end等于OFFSET_MAX |
559 | Callbacks for filesystems = NULL |
560 | Callbacks for lockmanagers = NULL |
562 | 返回:assign_type(fl, l_type) |
名称 | 描述 |
---|---|
flock_to_posix_lock | Verify a "struct flock" and copy it to a "struct file_lock" as a POSIX* style lock. |
fcntl_getlk64 | Report the first existing lock that would conflict with l.* This implements the F_GETLK command of fcntl(). |
fcntl_setlk64 | Apply the lock described by l to an open file descriptor.* This implements both the F_SETLK and F_SETLKW commands of fcntl(). |
源代码转换工具 开放的插件接口 | X |
---|---|
支持:c/c++/esqlc/java Oracle/Informix/Mysql 插件可实现:逻辑报告 代码生成和批量转换代码 |