函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:security\apparmor\apparmorfs.c Create Date:2022-07-27 21:24:39
Last Modify:2020-03-12 14:18:49 Copyright©Brick
首页 函数Tree
注解内核,赢得工具下载SCCTEnglish

函数名称:__next_profile - step to the next profile in a profile tree*@profile: current profile in tree (NOT NULL)* Perform a depth first traversal on the profile tree in a namespace* Returns: next profile or NULL if done* Requires: profile->ns.lock to be held

函数原型:static struct aa_profile *__next_profile(struct aa_profile *p)

返回类型:struct aa_profile

参数:

类型参数名称
struct aa_profile *p
2160  ns等于ns
2162  AA_BUG(!是互斥锁)
2165  如果非链表为空则返回:list_first_entry - get the first element from a list*@ptr: the list head to take the element from.*@type: the type of the struct this is embedded in.*@member: the name of the list_head within the struct.* Note, that list is expected to be not empty.( & profiles, typeof( * p), list)
2170  parent等于cu_dereference_protected() - fetch RCU pointer when updates prevented*@p: The pointer to read, prior to dereferencing*@c: The conditions under which the dereference will take place* Return the value of the specified RCU-protected pointer, but omit(parent, 是互斥锁)
2172 parent循环
2173  p等于list_next_entry - get the next element in list*@pos: the type * to cursor*@member: the name of the list_head within the struct.(p, list)
2174  如果非list_entry_is_head(p, & profiles, list)则返回:p
2176  p等于parent
2177  parent等于cu_dereference_protected() - fetch RCU pointer when updates prevented*@p: The pointer to read, prior to dereferencing*@c: The conditions under which the dereference will take place* Return the value of the specified RCU-protected pointer, but omit(parent, 是互斥锁)
2182  p等于list_next_entry - get the next element in list*@pos: the type * to cursor*@member: the name of the list_head within the struct.(p, list)
2183  如果非list_entry_is_head(p, & profiles, list)则返回:p
2186  返回:NULL
调用者
名称描述
next_profilext_profile - step to the next profile in where ever it may be*@root: root namespace (NOT NULL)*@profile: current profile (NOT NULL)* Returns: next profile or NULL if there isn't one