函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称: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.

函数原型:static void tomoyo_io_printf(struct tomoyo_io_buffer *head, const char *fmt, ...)

返回类型:void

参数:

类型参数名称
struct tomoyo_io_buffer *head
const char *fmt
282  pos等于avail
283  size等于Size of read buffer. pos
285  如果size小于等于0则返回
287  va_start(args, fmt)
288  len等于vsnprintf - 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*@args: Arguments for the format string* This function generally 加1
289  va_end(args)
290  如果poslen大于等于Size of read buffer.
291  WARN_ON(1)
292  返回
294  avail加等于len
295  moyo_set_string - Queue string to "struct tomoyo_io_buffer" structure
调用者
名称描述
tomoyo_print_number_union_nospacemoyo_print_number_union_nospace - Print a tomoyo_number_union without a space.*@head: Pointer to "struct tomoyo_io_buffer".*@ptr: Pointer to "struct tomoyo_number_union".* Returns nothing.
tomoyo_print_configmoyo_print_config - Print mode for specified functionality.*@head: Pointer to "struct tomoyo_io_buffer".*@config: Mode for that functionality.* Returns nothing.* Caller prints functionality's name.
tomoyo_read_profilemoyo_read_profile - Read profile table.*@head: Pointer to "struct tomoyo_io_buffer".* Returns nothing.
tomoyo_select_domainmoyo_select_domain - Parse select command.*@head: Pointer to "struct tomoyo_io_buffer".*@data: String to parse.* Returns true on success, false otherwise.* Caller holds tomoyo_read_lock().
tomoyo_print_conditionmoyo_print_condition - Print condition part.*@head: Pointer to "struct tomoyo_io_buffer".*@cond: Pointer to "struct tomoyo_condition".* Returns true on success, false otherwise.
tomoyo_set_groupmoyo_set_group - Print "acl_group " header keyword and category name.*@head: Pointer to "struct tomoyo_io_buffer".*@category: Category name.* Returns nothing.
tomoyo_print_entrymoyo_print_entry - Print an ACL entry.*@head: Pointer to "struct tomoyo_io_buffer".*@acl: Pointer to an ACL entry.* Returns true on success, false otherwise.
tomoyo_read_domainmoyo_read_domain - Read domain policy.*@head: Pointer to "struct tomoyo_io_buffer".* Caller holds tomoyo_read_lock().
tomoyo_read_pidmoyo_read_pid - Get domainname of the specified PID
tomoyo_read_groupmoyo_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().
tomoyo_read_versionmoyo_read_version: Get version.*@head: Pointer to "struct tomoyo_io_buffer".* Returns version information.
tomoyo_read_statmoyo_read_stat - Read statistic data.*@head: Pointer to "struct tomoyo_io_buffer".* Returns nothing.