函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称: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,

函数原型:static int label_merge_cmp(struct aa_label *a, struct aa_label *b, struct aa_label *z)

返回类型:int

参数:

类型参数名称
struct aa_label *a
struct aa_label *b
struct aa_label *z
978  struct aa_profile * p = NULL
979  struct label_it i = {}
982  AA_BUG(!a)
983  AA_BUG(!b)
984  AA_BUG(!z)
986 k小于sizep等于aa_label_next_in_merge - find the next profile when merging @a and @b*@I: label iterator*@a: label to merge*@b: label to merge* Returns: next profile* else null if no more profiles循环
989  res等于profile_cmp - profile comparison for set ordering*@a: profile to compare (NOT NULL)*@b: profile to compare (NOT NULL)* Returns: <0 if a < b* ==0 if a == b* >0 if a > b
991  如果res不等于0则返回:res
995  如果p则返回:1
997  否则如果k小于size则返回:负1
999  返回:0
调用者
名称描述
__label_find_merge__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