函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:label_count_strn_entries

函数原型:static int label_count_strn_entries(const char *str, size_t n)

返回类型:int

参数:

类型参数名称
const char *str
size_tn
1810  end等于strn
1812  count等于1
1814  AA_BUG(!str)
1816 split循环
1819  count自加
1820  str等于split加3
1823  返回:count
调用者
名称描述
aa_label_strn_parseaa_label_strn_parse - parse, validate and convert a text string to a label*@base: base label to use for lookups (NOT NULL)*@str: null terminated text string (NOT NULL)*@n: length of str to parse, will stop at \0 if encountered before n*@gfp: allocation