Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:vfs_kern_mount

Proto:struct vfsmount *vfs_kern_mount(struct file_system_type *type, int flags, const char *name, void *data)

Type:struct vfsmount

Parameter:

TypeParameterName
struct file_system_type *type
intflags
const char *name
void *data
977  ret = 0
979  If Not type Then Return ERR_PTR( - EINVAL)
982  fc = s_context manipulation functions.
983  If IS_ERR(fc) Then Return ERR_CAST - Explicitly cast an error-valued pointer to another pointer type*@ptr: The pointer to cast.* Explicitly cast an error-valued pointer to another pointer type in such a* way as to make it clear that's what's going on.
986  If name Then ret = vfs_parse_fs_string(fc, "source", name, strlen - Find the length of a string*@s: The string to be sized)
989  If Not ret Then ret = parse_monolithic_mount_data(fc, data)
991  If Not ret Then mnt = fc_mount(fc)
993  Else mnt = ERR_PTR(ret)
996  put_fs_context - Dispose of a superblock configuration context.*@fc: The context to dispose of.
997  Return mnt
Caller
NameDescribe
vfs_submount
init_mount_tree
kern_mount
simple_pin_fs