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:quires sort and merge done first

Proto:static struct aa_label *vec_create_and_insert_label(struct aa_profile **vec, int len, gfp_t gfp)

Type:struct aa_label

Parameter:

TypeParameterName
struct aa_profile **vec
intlen
gfp_tgfp
828  struct aa_label * label = NULL
834  AA_BUG(!vec)
836  If len == 1 Then Return aa_get_label( & label)
839  ls = labels_set( & label)
844  new = aa_label_alloc - allocate a label with a profile vector of @size length*@size: size of profile vector in the label*@proxy: proxy to use OR null if to allocate a new one*@gfp: memory allocation type* Returns: new label* else NULL if failed
845  If Not new Then Return NULL
848  When i < len cycle vec[i] = aa_get_profile - increment refcount on profile @p*@p: profile (MAYBE NULL)* Returns: pointer to @p if @p is NULL will return NULL* Requires: @p must be held with valid refcount when called
851  write_lock_irqsave( & lock, flags)
852  label = __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
853  write_unlock_irqrestore( & lock, flags)
854  label_free_or_put_new(label, new)
856  Return label
Caller
NameDescribe
aa_vec_find_or_create_label