函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:____bpf_get_current_uid_gid

函数原型:static inline __attribute__((__always_inline__)) u64 ____bpf_get_current_uid_gid(void)

返回类型:u64

参数:

173  task等于当前进程
177  如果此条件成立可能性小(为编译器优化)(!task)则返回:负EINVAL
180  current_uid_gid( & uid, & gid)
181  返回:m_kgid - Create a gid from a kgid user-namespace pair.*@targ: The user namespace we want a gid in.*@kgid: The kernel internal gid to start with.* Map @kgid into the user-namespace specified by @targ and* return the resulting gid.左移32位按位或m_kuid - Create a uid from a kuid user-namespace pair.*@targ: The user namespace we want a uid in.*@kuid: The kernel internal uid to start with.* Map @kuid into the user-namespace specified by @targ and* return the resulting uid.