函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:aa_label_insert - insert label @label into @ls or return existing label*@ls - labelset to insert @label into*@label - label to insert* Requires: caller to hold a valid ref on @label* Returns: ref counted @label if successful in inserting @label* else ref

函数原型:struct aa_label *aa_label_insert(struct aa_labelset *ls, struct aa_label *label)

返回类型:struct aa_label

参数:

类型参数名称
struct aa_labelset *ls
struct aa_label *label
903  AA_BUG(!ls)
904  AA_BUG(!label)
907  如果非label_is_stale(label)则
908  read_lock_irqsave( & lock, flags)
909  l等于__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
910  read_unlock_irqrestore( & lock, flags)
911  如果l则返回:l
915  write_lock_irqsave( & lock, flags)
916  l等于__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
917  write_unlock_irqrestore( & lock, flags)
919  返回:l
调用者
名称描述
__label_update__label_update - insert updated version of @label into labelset*@label - the label to update/replace* Returns: new label that is up to date* else NULL on failure* Requires: @ns lock be held* Note: worst case is the stale @label does not get updated and has