函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:prctl_set_auxv

函数原型:static int prctl_set_auxv(struct mm_struct *mm, unsigned long addr, unsigned long len)

返回类型:int

参数:

类型参数名称
struct mm_struct *mm
unsigned longaddr
unsigned longlen
2067  如果len大于user_auxv的长度则返回:负EINVAL
2070  如果copy_from_user(user_auxv, (constvoid__user * )addr, len)则返回:负EFAULT
2074  user_auxv[AT_VECTOR_SIZE - 2]等于0
2075  user_auxv[AT_VECTOR_SIZE - 1]等于0
2077  BUILD_BUG_ON - break compile if a condition is true(user_auxv的长度 != for /proc/PID/auxv 的长度)
2079  Protects ->fs, ->files, ->mm, ->group_info, ->comm, keyring* subscriptions and synchronises with wait4(). Also used in procfs. Also* pins the final release of task.io_context. Also protects ->cpuset and* ->cgroup.subsys[]. And ->vfork_done.
2080  内存复制( for /proc/PID/auxv , user_auxv, len)
2081  task_unlock(当前进程)
2083  返回:0
调用者
名称描述
prctl_set_mm