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:copy_mount_options

Proto:void *copy_mount_options(const void __user *data)

Type:void

Parameter:

TypeParameterName
const void __user *data
3016  If Not data Then Return NULL
3019  copy = Allocation memory
3020  If Not copy Then Return ERR_PTR( - ENOMEM)
3028  size = TASK_SIZE - Architectures that support memory tagging (assigning tags to memory regions,* embedding these tags into addresses that point to these memory regions, and* checking that the memory and the pointer tags match on memory accesses)(data)
3029  If size > PAGE_SIZE Then size = PAGE_SIZE
3032  i = size - 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
3033  If Not i Then
3034  kfree(copy)
3035  Return ERR_PTR( - EFAULT)
3037  If i != PAGE_SIZE Then memset(copy + i, 0, PAGE_SIZE - i)
3039  Return copy
Caller
NameDescribe
SYSCALL_DEFINE5
COMPAT_SYSCALL_DEFINE5