Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:Some copy_from_user() implementations do not return the exact number of* bytes remaining to copy on a fault. But copy_mount_options() requires that.* Note that this function differs from copy_from_user() in that it will oops

Proto:static long exact_copy_from_user(void *to, const void __user *from, unsigned long n)

Type:long

Parameter:

TypeParameterName
void *to
const void __user *from
unsigned longn
2991  t = to
2992  __user * f = from
2995  If Not access_ok - Checks if a user space pointer is valid*@addr: User space pointer to start of block to check*@size: Size of block to check* Context: User context only. This function may sleep if pagefaults are* enabled.(from, n) Then Return n
2998  When n cycle
3000  memset(t, 0, n)
3001  Break
3003  t++ = c
3004  f++
3005  n--
3007  Return n
Caller
NameDescribe
copy_mount_options