Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:alloc_vfsmnt

Proto:static struct mount *alloc_vfsmnt(const char *name)

Type:struct mount

Parameter:

TypeParameterName
const char *name
177  mnt = Shortcuts
178  If mnt Then
181  err = mnt_alloc_id(mnt)
182  If err Then Go to out_free_cache
185  If name Then
198  mnt_count = 1
199  mnt_writers = 0
202  INIT_HLIST_NODE( & mnt_hash)
203  Initialization list head
204  Initialization list head
205  Initialization list head
206  Initialization list head
207  Initialization list head
208  Initialization list head
209  Initialization list head
210  INIT_HLIST_NODE( & list mounts with the same mountpoint )
211  Initialization list head
212  INIT_HLIST_HEAD( & mnt_stuck_children)
214  Return mnt
220  out_free_id :
221  mnt_free_id(mnt)
222  out_free_cache :
223  kmem_cache_free(mnt_cache, mnt)
224  Return NULL
Caller
NameDescribe
vfs_create_mountvfs_create_mount - Create a mount for a configured superblock*@fc: The configuration context with the superblock attached* Create a mount to an already configured superblock. If necessary, the* caller should invoke vfs_get_tree() before calling this.
clone_mnt