Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:security\tomoyo\common.c Create Date:2022-07-28 19:34:00
Last Modify:2020-03-18 09:15:18 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name: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.

Proto:static void tomoyo_io_printf(struct tomoyo_io_buffer *head, const char *fmt, ...)

Type:void

Parameter:

TypeParameterName
struct tomoyo_io_buffer *head
const char *fmt
282  pos = avail
283  size = Size of read buffer. - pos
285  If size <= 0 Then Return
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  If pos + len >= Size of read buffer. Then
291  WARN_ON(1)
292  Return
294  avail += len
295  moyo_set_string - Queue string to "struct tomoyo_io_buffer" structure
Caller
NameDescribe
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.