Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:security\tomoyo\audit.c Create Date:2022-07-28 19:33:30
Last Modify:2020-03-12 14:18:49 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name:moyo_read_log - Read an audit log.*@head: Pointer to "struct tomoyo_io_buffer".* Returns nothing.

Proto:void tomoyo_read_log(struct tomoyo_io_buffer *head)

Type:void

Parameter:

TypeParameterName
struct tomoyo_io_buffer *head
441  struct tomoyo_log * ptr = NULL
443  If w_pos Then Return
445  kfree(Buffer for reading. )
446  Buffer for reading. = NULL
447  spin_lock( & Lock for "struct list_head tomoyo_log". )
448  If Not list_empty - tests whether a list is empty*@head: the list to test. Then
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.(next, typeof( * ptr), list)
450  deletes entry from list
451  Length of "stuct list_head tomoyo_log". --
452  tomoyo_memory_used[TOMOYO_MEMORY_AUDIT] -= size
454  spin_unlock( & Lock for "struct list_head tomoyo_log". )
455  If ptr Then
456  Buffer for reading. = log
457  w[w_pos++] = Buffer for reading.
458  kfree(ptr)