Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:alloc_dcookie

Proto:static struct dcookie_struct *alloc_dcookie(const struct path *path)

Type:struct dcookie_struct

Parameter:

TypeParameterName
const struct path *path
96  dcs = kmem_cache_alloc(dcookie_cache, GFP_KERNEL)
99  If Not dcs Then Return NULL
102  d = dentry
103  spin_lock( & d_lock)
104  protected by d_lock |= For use by dcookie subsystem
105  spin_unlock( & d_lock)
107  path = path
108  path_get - get a reference to a path*@path: path to get the reference to* Given a path increment the reference count to the dentry and the vfsmount.
109  hash_dcookie(dcs)
110  Return dcs
Caller
NameDescribe
get_dcookieThis is the main kernel-side routine that retrieves the cookie* value for a dentry/vfsmnt pair.