函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:aa_findn_ns - look up a profile namespace on the namespace list*@root: namespace to search in (NOT NULL)*@name: name of namespace to find (NOT NULL)*@n: length of @name* Returns: a refcounted namespace on the list, or NULL if no namespace

函数原型:struct aa_ns *aa_findn_ns(struct aa_ns *root, const char *name, size_t n)

返回类型:struct aa_ns

参数:

类型参数名称
struct aa_ns *root
const char *name
size_tn
164  struct aa_ns * ns = NULL
166  _read_lock() - mark the beginning of an RCU read-side critical section* When synchronize_rcu() is invoked on one CPU while other CPUs* are within RCU read-side critical sections, then the* synchronize_rcu() is guaranteed to block until after all the other
167  ns等于aa_get_ns - increment references count on @ns*@ns: namespace to increment reference count of (MAYBE NULL)* Returns: pointer to @ns, if @ns is NULL returns NULL* Requires: @ns must be held with valid refcount when called
168  _read_unlock() - marks the end of an RCU read-side critical section.* In most situations, rcu_read_unlock() is immune from deadlock.* However, in kernels built with CONFIG_RCU_BOOST, rcu_read_unlock()
170  返回:ns
调用者
名称描述
aa_find_nsaa_find_ns - look up a profile namespace on the namespace list*@root: namespace to search in (NOT NULL)*@name: name of namespace to find (NOT NULL)* Returns: a refcounted namespace on the list, or NULL if no namespace* called @name exists