函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:copy_mount_options

函数原型:void *copy_mount_options(const void __user *data)

返回类型:void

参数:

类型参数名称
const void __user *data
3016  如果非data则返回:NULL
3019  copy等于开辟内存
3020  如果非copy则返回:错误号
3028  size等于TASK_SIZEArchitectures 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  如果size大于PAGE_SIZEsize等于PAGE_SIZE
3032  i等于sizeSome 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  如果非i
3034  释放内存
3035  返回:错误号
3037  如果i不等于PAGE_SIZEmemset(copy + i, 0, PAGE_SIZE - i)
3039  返回:copy
调用者
名称描述
SYSCALL_DEFINE5
COMPAT_SYSCALL_DEFINE5