Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:security\apparmor\label.c Create Date:2022-07-28 19:54:24
Last Modify:2020-03-12 14:18:49 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name:__label_find_merge - find label that is equiv to merge of @a and @b*@ls: set of labels to search (NOT NULL)*@a: label to merge with @b (NOT NULL)*@b: label to merge with @a (NOT NULL)* Requires: ls->lock read_lock held* Returns: ref counted label that is

Proto:static struct aa_label *__label_find_merge(struct aa_labelset *ls, struct aa_label *a, struct aa_label *b)

Type:struct aa_label

Parameter:

TypeParameterName
struct aa_labelset *ls
struct aa_label *a
struct aa_label *b
1118  AA_BUG(!ls)
1119  AA_BUG(!a)
1120  AA_BUG(!b)
1122  If a == b Then Return __label_find - find label @label in label set*@label: label to find (NOT NULL)* Requires: labels_set(@label)->lock held* caller to hold a valid ref on l* Returns: ref counted @label if @label is in tree OR* ref counted label that is equiv to @label in
1125  node = rb_node
1126  When node cycle
1127  this = container_of - cast a member of a structure out to the containing structure*@ptr: the pointer to the member.*@type: the type of the container struct this is embedded in.*@member: the name of the member within the struct.(node, structaa_label, node)
1129  result = label_merge_cmp - cmp of @a merging with @b against @z for set ordering*@a: label to merge then compare (NOT NULL)*@b: label to merge then compare (NOT NULL)*@z: label to compare merge against (NOT NULL)* Assumes: using the most recent versions of @a, @b,
1131  If result < 0 Then node = rb_left
1133  Else if result > 0 Then node = rb_right
1135  Else Return __aa_get_label - get a reference count to uncounted label reference*@l: reference to get a count on* Returns: pointer to reference OR NULL if race is lost and reference is* being repeated.* Requires: lock held, and the return code MUST be checked
1139  Return NULL
Caller
NameDescribe
aa_label_find_mergeaa_label_find_merge - find label that is equiv to merge of @a and @b*@a: label to merge with @b (NOT NULL)*@b: label to merge with @a (NOT NULL)* Requires: labels be fully constructed with a valid ns* Returns: ref counted label that is equiv to merge of