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:__vec_find - find label that matches @vec in label set*@vec: vec of profiles to find matching label for (NOT NULL)*@n: length of @vec* Requires: @vec_labelset(vec) lock held* caller to hold a valid ref on l* Returns: ref counted @label if matching label

Proto:static struct aa_label *__vec_find(struct aa_profile **vec, int n)

Type:struct aa_label

Parameter:

TypeParameterName
struct aa_profile **vec
intn
696  AA_BUG(!vec)
697  AA_BUG(! * vec)
698  AA_BUG(n <= 0)
700  node = rb_node
701  When node cycle
702  this = rb_entry(node, structaa_label, node)
703  result = vec_cmp - label comparison for set ordering*@a: label to compare (NOT NULL)*@vec: vector of profiles to compare (NOT NULL)*@n: length of @vec* Returns: <0 if a < vec* ==0 if a == vec* >0 if a > vec
705  If result > 0 Then node = rb_left
707  Else if result < 0 Then node = rb_right
709  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
713  Return NULL
Caller
NameDescribe
__label_find__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
vec_findvec_find - find label @l in label set*@vec: array of profiles to find equiv label for (NOT NULL)*@n: length of @vec* Returns: refcounted label if @vec equiv is in tree* else NULL if @vec equiv is not in tree