函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:security\tomoyo\common.c Create Date:2022-07-27 21:05:59
Last Modify:2020-03-18 09:15:18 Copyright©Brick
首页 函数Tree
注解内核,赢得工具下载SCCTEnglish

函数名称:moyo_read_query - Read access requests which violated policy in enforcing mode.*@head: Pointer to "struct tomoyo_io_buffer".

函数原型:static void tomoyo_read_query(struct tomoyo_io_buffer *head)

返回类型:void

参数:

类型参数名称
struct tomoyo_io_buffer *head
2205  pos等于0
2206  len等于0
2209  如果w_pos则返回
2211  释放内存
2212  Buffer for reading. = NULL
2213  加自旋锁
2215  ptr等于list_entry - get the struct for this entry*@ptr: the &struct list_head pointer.*@type: the type of the struct this is embedded in.*@member: the name of the list_head within the struct.(tmp, typeof( * ptr), list)
2217  如果pos自加不等于query_index则继续下一循环
2219  len等于query_len
2220  退出
2222  自旋锁解锁
2223  如果非len
2224  query_index等于0
2225  返回
2227  buf等于分配内存并置零
2228  如果非buf则返回
2230  pos等于0
2231  加自旋锁
2233  ptr等于list_entry - get the struct for this entry*@ptr: the &struct list_head pointer.*@type: the type of the struct this is embedded in.*@member: the name of the list_head within the struct.(tmp, typeof( * ptr), list)
2235  如果pos自加不等于query_index则继续下一循环
2241  如果len恒等于query_lensnprintf - Format a string and place it in a buffer*@buf: The buffer to place the result into*@size: The size of the buffer, including the trailing null space*@fmt: The format string to use*@
2244  退出
2246  自旋锁解锁
2247  如果buf[0]则
2248  Buffer for reading. 等于buf
2249  w[w_pos++]等于buf
2250  query_index自加
2251  否则
2252  释放内存