函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:__next_ns - find the next namespace to list*@root: root namespace to stop search at (NOT NULL)*@ns: current ns position (NOT NULL)* Find the next namespace from @ns under @root and handle all locking needed* while switching current namespace

函数原型:static struct aa_ns *__next_ns(struct aa_ns *root, struct aa_ns *ns)

返回类型:struct aa_ns

参数:

类型参数名称
struct aa_ns *root
struct aa_ns *ns
2099  AA_BUG(!root)
2100  AA_BUG(!ns)
2101  AA_BUG(ns != root && !是互斥锁)
2104  如果非链表为空
2105  next等于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.( & sub_ns, typeof( * ns), list)
2106  mutex_lock_nested( & lock, level)
2107  返回:next
2111  parent等于parent
2112 ns不等于root循环
2113  mutex_unlock - release the mutex*@lock: the mutex to be released* Unlock a mutex that has been locked by this task previously.* This function must not be used in interrupt context. Unlocking* of a not locked mutex is not allowed.
2114  next等于list_next_entry - get the next element in list*@pos: the type * to cursor*@member: the name of the list_head within the struct.(ns, list)
2115  如果非list_entry_is_head(next, & sub_ns, list)则
2117  返回:next
2119  ns等于parent
2120  parent等于parent
2123  返回:NULL
调用者
名称描述
__first_profile__first_profile - find the first profile in a namespace*@root: namespace that is root of profiles being displayed (NOT NULL)*@ns: namespace to start in (NOT NULL)* Returns: unrefcounted profile or NULL if no profile* Requires: profile->ns.lock to be held
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