函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:xt_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

函数原型:static struct aa_profile *next_profile(struct aa_ns *root, struct aa_profile *profile)

返回类型:struct aa_profile

参数:

类型参数名称
struct aa_ns *root
struct aa_profile *profile
2199  next等于__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
2200  如果next则返回:next
2204  返回:__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
调用者
名称描述
p_startp_start - start a depth first traversal of profile tree*@f: seq_file to fill*@pos: current position* Returns: first profile under current namespace or NULL if none found* acquires first ns->lock
p_nextp_next - read the next profile entry*@f: seq_file to fill*@p: profile previously returned*@pos: current position* Returns: next profile after @p or NULL if none* may acquire/release locks in namespace tree as necessary