函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:moyo_read_log - Read an audit log.*@head: Pointer to "struct tomoyo_io_buffer".* Returns nothing.

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

返回类型:void

参数:

类型参数名称
struct tomoyo_io_buffer *head
441  struct tomoyo_log * ptr = NULL
443  如果w_pos则返回
445  释放内存
446  Buffer for reading. = NULL
447  加自旋锁
448  如果非链表为空
449  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.(链表后项, typeof( * ptr), list)
450  删除链表项
451  Length of "stuct list_head tomoyo_log". 自减
452  tomoyo_memory_used[TOMOYO_MEMORY_AUDIT]减等于size
454  自旋锁解锁
455  如果ptr
456  Buffer for reading. 等于log
457  w[w_pos++]等于Buffer for reading.
458  释放内存