函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:kernel\groups.c Create Date:2022-07-27 10:35:40
Last Modify:2020-03-12 14:18:49 Copyright©Brick
首页 函数Tree
注解内核,赢得工具下载SCCTEnglish

函数名称:a simple bsearch

函数原型:int groups_search(const struct group_info *group_info, kgid_t grp)

返回类型:int

参数:

类型参数名称
const struct group_info *group_info
kgid_tgrp
101  如果非group_info则返回:0
104  left等于0
105  right等于ngroups
106 left小于right循环
107  mid等于leftright的和除2
108  如果gid_gt(grp, gid[mid])则left等于mid加1
110  否则如果gid_lt(grp, gid[mid])则right等于mid
112  否则返回:1
115  返回:0
调用者
名称描述
in_group_pCheck whether we're fsgid/egid or in the supplemental group..
in_egroup_p
audit_filter_rulesCompare a task_struct with an audit_rule. Return 1 on match, 0* otherwise.* If task_creation is true, this is an explicit indication that we are* filtering a task rule at task creation time. This and tsk == current are