Function report |
Source Code:security\apparmor\apparmorfs.c |
Create Date:2022-07-28 19:50:05 |
| Last Modify:2020-03-12 14:18:49 | Copyright©Brick |
| home page | Tree |
| Annotation kernel can get tool activity | Download SCCT | Chinese |
Name:__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
Proto:static struct aa_ns *__next_ns(struct aa_ns *root, struct aa_ns *ns)
Type:struct aa_ns
Parameter:
| Type | Parameter | Name |
|---|---|---|
| struct aa_ns * | root | |
| struct aa_ns * | ns |
| 2101 | AA_BUG(ns != root && !mutex_is_locked( & lock)) |
| 2104 | If Not list_empty - tests whether a list is empty*@head: the list to test. Then |
| 2106 | mutex_lock_nested( & lock, level) |
| 2107 | Return next |
| 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 | If Not list_entry_is_head(next, & sub_ns, list) Then |
| 2116 | mutex_lock_nested( & lock, level) |
| 2117 | Return next |
| 2123 | Return NULL |
| Name | Describe |
|---|---|
| __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_profile | 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 |
| Source code conversion tool public plug-in interface | X |
|---|---|
| Support c/c++/esqlc/java Oracle/Informix/Mysql Plug-in can realize: logical Report Code generation and batch code conversion |