函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:moyo_read_group - Read "struct tomoyo_path_group"/"struct tomoyo_number_group"/"struct tomoyo_address_group" list.*@head: Pointer to "struct tomoyo_io_buffer".*@idx: Index number.* Returns true on success, false otherwise.* Caller holds tomoyo_read_lock().

函数原型:static bool tomoyo_read_group(struct tomoyo_io_buffer *head, const int idx)

返回类型:bool

参数:

类型参数名称
struct tomoyo_io_buffer *head
const intidx
1799  ns等于container_of - cast a member of a structure out to the containing structure*@ptr: the pointer to the member.*@type: the type of the container struct this is embedded in.*@member: the name of the member within the struct.(ns, typeof( * ns), namespace_list)
1801  list等于 List of "struct tomoyo_group". [idx]
1804  group等于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.(group, typeof( * group), List for telling GC not to kfree() elements. )
1808  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.(acl, typeof( * ptr), list)
1811  如果rue or false or TOMOYO_GC_IN_PROGRESS 则继续下一循环
1813  如果非moyo_flush - Flush queued string to userspace's buffer.*@head: Pointer to "struct tomoyo_io_buffer".* Returns true if all data was flushed, false otherwise.则返回:false
1815  moyo_print_namespace - Print namespace header.*@head: Pointer to "struct tomoyo_io_buffer".* Returns nothing.
1816  moyo_set_string - Queue string to "struct tomoyo_io_buffer" structure
1817  moyo_set_string - Queue string to "struct tomoyo_io_buffer" structure
1818  如果idx恒等于TOMOYO_PATH_GROUP
1819  moyo_set_space - Put a space to "struct tomoyo_io_buffer" structure.*@head: Pointer to "struct tomoyo_io_buffer".* Returns nothing.
1820  moyo_set_string - Queue string to "struct tomoyo_io_buffer" structure
1823  否则如果idx恒等于TOMOYO_NUMBER_GROUP
1824  moyo_print_number_union - Print a tomoyo_number_union.*@head: Pointer to "struct tomoyo_io_buffer".*@ptr: Pointer to "struct tomoyo_number_union".* Returns nothing.
1828  否则如果idx恒等于TOMOYO_ADDRESS_GROUP
1830  member等于container_of - cast a member of a structure out to the containing structure*@ptr: the pointer to the member.*@type: the type of the container struct this is embedded in.*@member: the name of the member within the struct.(ptr, typeof( * member), head)
1834  tomoyo_print_ip(buffer, buffer的长度, & Structure for holding an IP address. )
1836  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.
1838  moyo_set_lf - Put a line feed to "struct tomoyo_io_buffer" structure.*@head: Pointer to "struct tomoyo_io_buffer".* Returns nothing.
1840  acl = NULL
1842  group = NULL
1843  返回:true
调用者
名称描述
tomoyo_read_exceptionmoyo_read_exception - Read exception policy.*@head: Pointer to "struct tomoyo_io_buffer".* Caller holds tomoyo_read_lock().