函数逻辑报告 |
Source Code:security\apparmor\label.c |
Create Date:2022-07-27 21:43:49 |
Last Modify:2020-03-12 14:18:49 | Copyright©Brick |
首页 | 函数Tree |
注解内核,赢得工具 | 下载SCCT | English |
函数名称:assumes vec is sorted* Assumes @vec has null terminator at vec[n], and will null terminate* vec[n - dups]
函数原型:static inline int unique(struct aa_profile **vec, int n)
返回类型:int
参数:
类型 | 参数 | 名称 |
---|---|---|
struct aa_profile ** | vec | |
int | n |
226 | dups等于0 |
231 | pos等于0 |
233 | res等于profile_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 |
236 | 如果res恒等于0则 |
239 | dups自加 |
240 | 继续下一循环 |
242 | pos自加 |
249 | 返回:dups |
名称 | 描述 |
---|---|
aa_vec_unique | aa_vec_unique - canonical sort and unique a list of profiles*@n: number of refcounted profiles in the list (@n > 0)*@vec: list of profiles to sort and merge* Returns: the number of duplicates eliminated == references put* If @flags & VEC_FLAG_TERMINATE |
源代码转换工具 开放的插件接口 | X |
---|---|
支持:c/c++/esqlc/java Oracle/Informix/Mysql 插件可实现:逻辑报告 代码生成和批量转换代码 |