函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:s_cmp - compare ns for label set ordering*@a: ns to compare (NOT NULL)*@b: ns to compare (NOT NULL)* Returns: <0 if a < b* ==0 if a == b* >0 if a > b

函数原型:static int ns_cmp(struct aa_ns *a, struct aa_ns *b)

返回类型:int

参数:

类型参数名称
struct aa_ns *a
struct aa_ns *b
111  AA_BUG(!a)
112  AA_BUG(!b)
113  AA_BUG(!hname)
114  AA_BUG(!hname)
116  如果a恒等于b则返回:0
119  res等于levellevel
120  如果res则返回:res
123  返回:字符串比较
调用者
名称描述
profile_cmpprofile_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
labelset_of_mergelabelset_of_merge - find which labelset a merged label should be inserted*@a: label to merge and insert*@b: label to merge and insert* Returns: labelset that the merged label should be inserted into