函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:fs\namespace.c Create Date:2022-07-29 10:39:42
Last Modify:2020-03-12 14:18:49 Copyright©Brick
首页 函数Tree
注解内核,赢得工具下载SCCTEnglish

函数名称: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

函数原型:static long exact_copy_from_user(void *to, const void __user *from, unsigned long n)

返回类型:long

参数:

类型参数名称
void *to
const void __user *from
unsigned longn
2991  t等于to
2992  __userf等于from
2995  如果非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)则返回:n
2998 n循环
3000  memset(t, 0, n)
3001  退出
3003  t自加等于c
3004  f自加
3005  n自减
3007  返回:n
调用者
名称描述
copy_mount_options