函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

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

函数原型:struct aa_label *aa_label_find_merge(struct aa_label *a, struct aa_label *b)

返回类型:struct aa_label

参数:

类型参数名称
struct aa_label *a
struct aa_label *b
1156  struct aa_label * label, * ar = NULL, * br = NULL
1159  AA_BUG(!a)
1160  AA_BUG(!b)
1162  如果label_is_stale(a)则a等于ar等于aa_get_newest_label - find the newest version of @l*@l: the label to check for newer versions of* Returns: refcounted newest version of @l taking into account* replacement, renames and removals* return @l.
1164  如果label_is_stale(b)则b等于br等于aa_get_newest_label - find the newest version of @l*@l: the label to check for newer versions of* Returns: refcounted newest version of @l taking into account* replacement, renames and removals* return @l.
1166  ls等于labelset_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
1167  read_lock_irqsave( & lock, flags)
1168  label等于__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
1169  read_unlock_irqrestore( & lock, flags)
1170  aa_put_label(ar)
1171  aa_put_label(br)
1173  返回:label