函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:moyo_read_domain - Read domain policy.*@head: Pointer to "struct tomoyo_io_buffer".* Caller holds tomoyo_read_lock().

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

返回类型:void

参数:

类型参数名称
struct tomoyo_io_buffer *head
1620  如果eof则返回
1623  domain等于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.(domain, typeof( * domain), list)
1628  :step恒等于0
1629  如果 Delete flag. 且非print_this_domain_only则继续下一循环
1633  moyo_set_string - Queue string to "struct tomoyo_io_buffer" structure
1634  moyo_set_lf - Put a line feed to "struct tomoyo_io_buffer" structure.*@head: Pointer to "struct tomoyo_io_buffer".* Returns nothing.
1635  moyo_io_printf - printf() to "struct tomoyo_io_buffer" structure.*@head: Pointer to "struct tomoyo_io_buffer".*@fmt: The printf()'s format string, followed by parameters.
1637 i小于TOMOYO_MAX_DOMAIN_INFO_FLAGS循环如果flags[i]则
1639  moyo_set_string - Queue string to "struct tomoyo_io_buffer" structure
1640  index等于0
1641  step自加
1643  :step恒等于1
1645  i等于index自加
1652  index等于0
1653  step自加
1654  moyo_set_lf - Put a line feed to "struct tomoyo_io_buffer" structure.*@head: Pointer to "struct tomoyo_io_buffer".* Returns nothing.
1656  :step恒等于2
1657  如果非moyo_read_domain2 - Read domain policy.*@head: Pointer to "struct tomoyo_io_buffer".*@list: Pointer to "struct list_head".* Caller holds tomoyo_read_lock().* Returns true on success, false otherwise.则返回
1659  step自加
1660  如果非moyo_set_lf - Put a line feed to "struct tomoyo_io_buffer" structure.*@head: Pointer to "struct tomoyo_io_buffer".* Returns nothing.则返回
1663  :step恒等于3
1664  step等于0
1665  如果print_this_domain_only则转到:done
1669  done :
1670  eof = true