Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:simple_pin_fs

Proto:int simple_pin_fs(struct file_system_type *type, struct vfsmount **mount, int *count)

Type:int

Parameter:

TypeParameterName
struct file_system_type *type
struct vfsmount **mount
int *count
600  struct vfsmount * mnt = NULL
601  spin_lock( & pin_fs_lock)
602  If Value for the false possibility is greater at compile time(! * mount) Then
603  spin_unlock( & pin_fs_lock)
604  mnt = vfs_kern_mount(type, his is a kern_mount call , name, NULL)
605  If IS_ERR(mnt) Then Return PTR_ERR(mnt)
607  spin_lock( & pin_fs_lock)
608  If Not mount Then mount = mnt
611  mntget( * mount)
612  ++count
613  spin_unlock( & pin_fs_lock)
614  mntput(mnt)
615  Return 0
Caller
NameDescribe
aafs_createaafs_create - create a dentry in the apparmorfs filesystem*@name: name of dentry to create*@mode: permissions the file should have*@parent: parent directory for this dentry*@data: data to store on inode
ns_mkdir_op
aa_mk_null_file
bm_register_write/register