函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:moyo_write_answer - Write the supervisor's decision.*@head: Pointer to "struct tomoyo_io_buffer".* Returns 0 on success, -EINVAL otherwise.

函数原型:static int tomoyo_write_answer(struct tomoyo_io_buffer *head)

返回类型:int

参数:

类型参数名称
struct tomoyo_io_buffer *head
2265  data等于Buffer for writing.
2270  加自旋锁
2272  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.(tmp, typeof( * ptr), list)
2274  timer等于0
2276  自旋锁解锁
2277  如果sscanf - Unformat a buffer into a list of arguments*@buf: input buffer*@fmt: formatting of buffer*@...: resulting arguments不等于2则返回:负EINVAL
2279  加自旋锁
2281  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.(tmp, typeof( * ptr), list)
2283  如果serial不等于serial则继续下一循环
2285  answer等于answer
2287  如果answer删除链表项并重新初始化
2289  退出
2291  自旋锁解锁
2292  返回:0