函数逻辑报告 |
Source Code:fs\locks.c |
Create Date:2022-07-29 10:59:40 |
Last Modify:2020-03-12 14:18:49 | Copyright©Brick |
首页 | 函数Tree |
注解内核,赢得工具 | 下载SCCT | English |
函数名称:Apply the lock described by l to an open file descriptor.* This implements both the F_SETLK and F_SETLKW commands of fcntl().
函数原型:int fcntl_setlk(unsigned int fd, struct file *filp, unsigned int cmd, struct flock *flock)
返回类型:int
参数:
类型 | 参数 | 名称 |
---|---|---|
unsigned int | fd | |
struct file * | filp | |
unsigned int | cmd | |
struct flock * | flock |
2448 | inode等于locks_inode(filp) |
2476 | 当:cmd恒等于F_OFD_SETLK |
2484 | 退出 |
2485 | 当:cmd恒等于F_OFD_SETLKW |
2495 | fl_flags或等于A blocking lock |
2498 | error等于do_lock_file_wait(filp, cmd, file_lock) |
2505 | 如果非error且fl_type不等于F_UNLCK且非fl_flags按位与lock is "owned" by struct file 的值则 |
2522 | out : |
2523 | trace_fcntl_setlk(inode, file_lock, error) |
2525 | 返回:error |
名称 | 描述 |
---|---|
do_compat_fcntl64 |
源代码转换工具 开放的插件接口 | X |
---|---|
支持:c/c++/esqlc/java Oracle/Informix/Mysql 插件可实现:逻辑报告 代码生成和批量转换代码 |