函数逻辑报告 |
Source Code:ipc\mqueue.c |
Create Date:2022-07-27 18:27:11 |
| Last Modify:2020-03-17 23:00:47 | Copyright©Brick |
| 首页 | 函数Tree |
| 注解内核,赢得工具 | 下载SCCT | English |
函数名称:do_mq_getsetattr
函数原型:static int do_mq_getsetattr(int mqdes, struct mq_attr *new, struct mq_attr *old)
返回类型:int
参数:
| 类型 | 参数 | 名称 |
|---|---|---|
| int | mqdes | |
| struct mq_attr * | new | |
| struct mq_attr * | old |
| 1356 | 如果new且 message queue flags 按位与O_NONBLOCK的反则返回:负EINVAL |
| 1363 | 如果此条件成立可能性小(为编译器优化)(f_op != & mqueue_file_operations)则 |
| 1368 | inode等于file_inode(file) |
| 1371 | 加自旋锁 |
| 1373 | 如果old则 |
| 1375 | message queue flags 等于f_flags按位与O_NONBLOCK |
| 1377 | 如果new则 |
| 1378 | audit_mq_getsetattr(mqdes, new) |
| 1379 | 加自旋锁 |
| 1380 | 如果 message queue flags 按位与O_NONBLOCK则f_flags或等于O_NONBLOCK |
| 1382 | 否则f_flags与等于O_NONBLOCK的反 |
| 1384 | 自旋锁解锁 |
| 1386 | i_atime等于i_ctime等于current_time(inode) |
| 1389 | 自旋锁解锁 |
| 1391 | 返回:0 |
| 源代码转换工具 开放的插件接口 | X |
|---|---|
| 支持:c/c++/esqlc/java Oracle/Informix/Mysql 插件可实现:逻辑报告 代码生成和批量转换代码 |