Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:kernel\futex.c Create Date:2022-07-28 10:55:20
Last Modify:2020-03-17 15:28:32 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name:COMPAT_SYSCALL_DEFINE3

Proto:COMPAT_SYSCALL_DEFINE3(get_robust_list, int, pid, compat_uptr_t __user *, head_ptr, compat_size_t __user *, len_ptr)

Type:

Parameter:Nothing

4068  __user * head
4072  If Not futex_cmpxchg_enabled Then Return -ENOSYS
4075  _read_lock() - mark the beginning of an RCU read-side critical section* When synchronize_rcu() is invoked on one CPU while other CPUs* are within RCU read-side critical sections, then the* synchronize_rcu() is guaranteed to block until after all the other
4077  ret = -ESRCH
4078  If (!pid) Then p = current process
4080  Else
4081  p = find_task_by_vpid(pid)
4082  If Not p Then Go to err_unlock
4086  ret = -EPERM
4087  If Not ptrace_may_access(p, PTRACE_MODE_READ_REALCREDS) Then Go to err_unlock
4090  head = compat_robust_list
4091  _read_unlock() - marks the end of an RCU read-side critical section.* In most situations, rcu_read_unlock() is immune from deadlock.* However, in kernels built with CONFIG_RCU_BOOST, rcu_read_unlock()
4093  If Write a simple value into user space( size of head , len_ptr) Then Return -EFAULT
4095  Return Write a simple value into user space(ptr_to_compat(head), head_ptr)
4097  err_unlock :
4098  _read_unlock() - marks the end of an RCU read-side critical section.* In most situations, rcu_read_unlock() is immune from deadlock.* However, in kernels built with CONFIG_RCU_BOOST, rcu_read_unlock()
4100  Return ret