函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:SYSCALL_DEFINE3

函数原型:SYSCALL_DEFINE3(getresgid16, old_gid_t __user *, rgidp, old_gid_t __user *, egidp, old_gid_t __user *, sgidp)

返回类型:

参数:

89  cred等于current_cred - Access the current task's subjective credentials* Access the subjective credentials of the current task. RCU-safe,* since nobody else can modify it.()
93  rgid等于high2lowgid(from_kgid_munged( user_ns the caps and keyrings are relative to. , 进程gid))
94  egid等于high2lowgid(from_kgid_munged( user_ns the caps and keyrings are relative to. , 有效gid))
95  sgid等于high2lowgid(from_kgid_munged( user_ns the caps and keyrings are relative to. , 保留gid))
97  如果非retval等于put_user - Write a simple value into user space(rgid, rgidp)且非retval等于put_user - Write a simple value into user space(egid, egidp)则retval等于put_user - Write a simple value into user space(sgid, sgidp)
101  返回:retval