Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:include\linux\pagemap.h Create Date:2022-07-28 05:45:08
Last Modify:2020-03-12 14:18:49 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name:Fault everything in given userspace address range in.

Proto:static inline int fault_in_pages_writeable(char __user *uaddr, int size)

Type:int

Parameter:

TypeParameterName
char __user *uaddr
intsize
555  __user * end = uaddr + size - 1
557  If Value for the false possibility is greater at compile time(size == 0) Then Return 0
560  If Value for the false possibility is greater at compile time(uaddr > end) Then Return -EFAULT
566  Do
567  If Value for the false possibility is greater at compile time(__put_user(0, uaddr) != 0) Then Return -EFAULT
569  uaddr += PAGE_SIZE
570  When uaddr <= end cycle
573  If (uaddr & PAGE_MASK) == (end & PAGE_MASK) Then Return __put_user(0, end)
577  Return 0
Caller
NameDescribe
copy_page_to_iter_iovec
copy_fpstate_to_sigframeSave the fpu, extended register state to the user signal frame.* 'buf_fx' is the 64-byte aligned pointer at which the [f|fx|x]save* state is copied.* 'buf' points to the 'buf_fx' or to the fsave header followed by 'buf_fx'.