函数逻辑报告 |
Source Code:fs\locks.c |
Create Date:2022-07-29 10:59:42 |
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_setlk64(unsigned int fd, struct file *filp, unsigned int cmd, struct flock64 *flock)
返回类型:int
参数:
类型 | 参数 | 名称 |
---|---|---|
unsigned int | fd | |
struct file * | filp | |
unsigned int | cmd | |
struct flock64 * | flock |
2579 | inode等于locks_inode(filp) |
2594 | error等于flock64_to_posix_lock(filp, file_lock, flock) |
2607 | 当:cmd恒等于F_OFD_SETLK |
2615 | 退出 |
2616 | 当:cmd恒等于F_OFD_SETLKW |
2621 | cmd等于F_SETLKW64 |
2625 | 当:cmd恒等于F_SETLKW64 |
2626 | fl_flags或等于A blocking lock |
2629 | error等于do_lock_file_wait(filp, cmd, file_lock) |
2636 | 如果非error且fl_type不等于F_UNLCK且非fl_flags按位与lock is "owned" by struct file 的值则 |
2653 | out : |
2655 | 返回:error |
源代码转换工具 开放的插件接口 | X |
---|---|
支持:c/c++/esqlc/java Oracle/Informix/Mysql 插件可实现:逻辑报告 代码生成和批量转换代码 |