Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

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

Proto:static int tomoyo_write_answer(struct tomoyo_io_buffer *head)

Type:int

Parameter:

TypeParameterName
struct tomoyo_io_buffer *head
2265  data = Buffer for writing.
2270  spin_lock( & Lock for manipulating tomoyo_query_list. )
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  spin_unlock( & Lock for manipulating tomoyo_query_list. )
2277  If sscanf - Unformat a buffer into a list of arguments*@buf: input buffer*@fmt: formatting of buffer*@...: resulting arguments != 2 Then Return -EINVAL
2279  spin_lock( & Lock for manipulating tomoyo_query_list. )
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  If serial != serial Then Continue
2285  answer = answer
2287  If answer Then list_del_init - deletes entry from list and reinitialize it.*@entry: the element to delete from the list.
2289  Break
2291  spin_unlock( & Lock for manipulating tomoyo_query_list. )
2292  Return 0