函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:ipc\mqueue.c Create Date:2022-07-27 18:25:54
Last Modify:2020-03-17 23:00:47 Copyright©Brick
首页 函数Tree
注解内核,赢得工具下载SCCTEnglish

函数名称:mqueue_evict_inode

函数原型:static void mqueue_evict_inode(struct inode *inode)

返回类型:void

参数:

类型参数名称
struct inode *inode
443  LIST_HEAD(tmp_msg)
445  清除索引节点
447  如果S_ISDIR(i_mode)则返回
450  ipc_ns等于get_ns_from_inode(inode)
451  info等于MQUEUE_I(inode)
452  加自旋锁
453  当((msg = msg_get(info)) != NULL)循环
454  添加链表项
455  释放内存
456  自旋锁解锁
459  删除链表项
460  free_msg(msg)
463  user等于 user who created, for accounting
464  如果user
468  mq_treesize等于 maximum number of messages sizeof(structmsg_msg)加min_t - return minimum of two values, using the specified type*@type: data type to use*@x: first value*@y: second value(unsignedint, maximum number of messages , MQ_PRIO_MAX)乘sizeof(structposix_msg_tree_node)
472  mq_bytes等于mq_treesize maximum number of messages maximum message size
475  加自旋锁
476  How many bytes can be allocated to mqueue? 减等于mq_bytes
483  如果ipc_nsmq_queues_count自减
485  自旋锁解锁
486  free_uid(user)
488  如果ipc_nsput_ipc_ns(ipc_ns)