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_cmp - label comparison for set ordering*@a: label to compare (NOT NULL)*@b: label to compare (NOT NULL)* Returns: <0 if a < b* ==0 if a == b* >0 if a > b

Proto:static int label_cmp(struct aa_label *a, struct aa_label *b)

Type:int

Parameter:

TypeParameterName
struct aa_label *a
struct aa_label *b
471  AA_BUG(!b)
473  If a == b Then Return 0
476  Return 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
Caller
NameDescribe
__label_insert__label_insert - attempt to insert @l into a label set*@ls: set of labels to insert @l into (NOT NULL)*@label: new label to insert (NOT NULL)*@replace: whether insertion should replace existing entry that is not stale* Requires: @ls->lock* caller to hold