| 函数逻辑报告 | 
| Source Code: ipc\mqueue.c | Create Date:2022-07-27 18:26:24 | 
| Last Modify:2020-03-17 23:00:47 | Copyright©Brick | 
| 首页 | 函数Tree | 
| 注解内核,赢得工具 | 下载SCCT | English | 
函数名称:do_mq_open
函数原型:static int do_mq_open(const char __user *u_name, int oflag, umode_t mode, struct mq_attr *attr)
返回类型:int
参数:
| 类型 | 参数 | 名称 | 
|---|---|---|
| const char __user * | u_name | |
| int | oflag | |
| umode_t | mode | |
| struct mq_attr * | attr | 
| 802 | root等于 root of the mounted tree | 
| 808 | audit_mq_open(oflag, mode, attr) | 
| 813 | fd等于get_unused_fd_flags(O_CLOEXEC) | 
| 814 | 如果fd小于0则转到:out_putname | 
| 817 | ro等于mnt_want_write(mnt) | 
| 818 | inode_lock(获得目录项的索引节点) | 
| 819 | dentry等于lookup_one_len( pointer to actual string , root, strlen - Find the length of a string*@s: The string to be sized) | 
| 820 | 如果是错误则 | 
| 826 | 如果非error则 | 
| 828 | 如果非是错误则fd_install(fd, file) | 
| 834 | out_putfd : | 
| 835 | 如果error则 | 
| 836 | put_unused_fd(fd) | 
| 839 | inode_unlock(获得目录项的索引节点) | 
| 840 | 如果非ro则mnt_drop_write(mnt) | 
| 842 | out_putname : | 
| 844 | 返回:fd | 
| 源代码转换工具 开放的插件接口 | X | 
|---|---|
| 支持:c/c++/esqlc/java Oracle/Informix/Mysql 插件可实现:逻辑报告 代码生成和批量转换代码 |