Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:kernel\sys.c Create Date:2022-07-28 09:21:07
Last Modify:2020-03-12 14:18:49 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name:prctl_set_auxv

Proto:static int prctl_set_auxv(struct mm_struct *mm, unsigned long addr, unsigned long len)

Type:int

Parameter:

TypeParameterName
struct mm_struct *mm
unsigned longaddr
unsigned longlen
2067  If len > size of user_auxv Then Return -EINVAL
2070  If copy_from_user(user_auxv, (constvoid__user * )addr, len) Then Return -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( size of user_auxv != size of 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  No 3D Now!( for /proc/PID/auxv , user_auxv, len)
2081  task_unlock(current process)
2083  Return 0
Caller
NameDescribe
prctl_set_mm