Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:COMPAT_SYSCALL_DEFINE5

Proto:COMPAT_SYSCALL_DEFINE5(mount, const char __user *, dev_name, const char __user *, dir_name, const char __user *, type, compat_ulong_t, flags, const void __user *, data)

Type:

Parameter:Nothing

99  kernel_type = copy_mount_string(type)
100  retval = PTR_ERR(kernel_type)
101  If IS_ERR(kernel_type) Then Go to out
104  kernel_dev = copy_mount_string(dev_name)
105  retval = PTR_ERR(kernel_dev)
106  If IS_ERR(kernel_dev) Then Go to out1
109  options = copy_mount_options(data)
110  retval = PTR_ERR(options)
111  If IS_ERR(options) Then Go to out2
114  If kernel_type && options Then
115  If Not strcmp(kernel_type, NFS4_NAME) Then
116  retval = -EINVAL
117  If do_nfs4_super_data_conv(options) Then Go to out3
122  retval = Flags is a 32-bit value that allows up to 31 non-fs dependent flags to* be given to the mount() call (ie: read-only, no-dev, no-suid etc)
124  out3 :
125  kfree(options)
126  out2 :
127  kfree(kernel_dev)
128  out1 :
129  kfree(kernel_type)
130  out :
131  Return retval