函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:moyo_read_profile - Read profile table.*@head: Pointer to "struct tomoyo_io_buffer".* Returns nothing.

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

返回类型:void

参数:

类型参数名称
struct tomoyo_io_buffer *head
747  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)
751  如果eof则返回
753  :
754  index等于index
755  profile等于 Profile table. Memory is allocated as needed. [index]
757  :step恒等于0
758  moyo_print_namespace - Print namespace header.*@head: Pointer to "struct tomoyo_io_buffer".* Returns nothing.
759  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.
761  step自加
762  退出
763  :step恒等于1
764 index小于Profile number is an integer between 0 and 255. 循环如果 Profile table. Memory is allocated as needed. [index]则
767  退出
769  eof = true
770  返回
772  step自加
773  退出
774  :step恒等于2
777  comment等于comment
780  moyo_print_namespace - Print namespace header.*@head: Pointer to "struct tomoyo_io_buffer".* Returns nothing.
781  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.
782  moyo_set_string - Queue string to "struct tomoyo_io_buffer" structure
783  moyo_set_lf - Put a line feed to "struct tomoyo_io_buffer" structure.*@head: Pointer to "struct tomoyo_io_buffer".* Returns nothing.
784  moyo_print_namespace - Print namespace header.*@head: Pointer to "struct tomoyo_io_buffer".* Returns nothing.
785  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.
786 i小于TOMOYO_MAX_PREF循环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.
790  moyo_set_string - Queue string to "struct tomoyo_io_buffer" structure
791  step自加
793  退出
794  :step恒等于3
796  moyo_print_namespace - Print namespace header.*@head: Pointer to "struct tomoyo_io_buffer".* Returns nothing.
797  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.
798  moyo_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.
799  bit等于0
800  step自加
802  退出
803  :step恒等于4
806  i等于bit
807  config等于config[i]
809  如果config恒等于TOMOYO_CONFIG_USE_DEFAULT则继续下一循环
822  bit自加
823  退出
827  index自加
828  step等于1
830  退出
832  如果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.则转到:next