函数逻辑报告 |
Source Code:fs\locks.c |
Create Date:2022-07-29 10:59:37 |
Last Modify:2020-03-12 14:18:49 | Copyright©Brick |
首页 | 函数Tree |
注解内核,赢得工具 | 下载SCCT | English |
函数名称: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.
函数原型:SYSCALL_DEFINE2(flock, unsigned int, fd, unsigned int, cmd)
返回类型:
参数:无
2203 | 如果非unlock且非cmd按位与LOCK_MAND的值且非f_mode按位与le is open for reading 按位或le is open for writing 的值的值则转到:out_putf |
2208 | 如果是错误则 |
2213 | 如果can_sleep则fl_flags或等于A blocking lock |
2216 | error等于security_file_lock(file, fl_type) |
2224 | 否则error等于locks_lock_file_wait(file, lock) |
2227 | out_free : |
2230 | out_putf : |
2232 | out : |
2233 | 返回:error |
源代码转换工具 开放的插件接口 | X |
---|---|
支持:c/c++/esqlc/java Oracle/Informix/Mysql 插件可实现:逻辑报告 代码生成和批量转换代码 |