函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:include\linux\pagemap.h Create Date:2022-07-27 06:45:58
Last Modify:2020-03-12 14:18:49 Copyright©Brick
首页 函数Tree
注解内核,赢得工具下载SCCTEnglish

函数名称:Fault everything in given userspace address range in.

函数原型:static inline int fault_in_pages_writeable(char __user *uaddr, int size)

返回类型:int

参数:

类型参数名称
char __user *uaddr
intsize
555  __userend等于uaddrsize减1
557  如果此条件成立可能性小(为编译器优化)(size == 0)则返回:0
560  如果此条件成立可能性小(为编译器优化)(uaddr > end)则返回:负EFAULT
566  循环
567  如果此条件成立可能性小(为编译器优化)(__put_user(0, uaddr) != 0)则返回:负EFAULT
569  uaddr加等于PAGE_SIZE
570 uaddr小于等于end循环
573  如果uaddr按位与PAGE_MASK的值恒等于end按位与PAGE_MASK的值则返回:__put_user(0, end)
577  返回:0
调用者
名称描述
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'.