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:find_dcookie

Proto:static struct dcookie_struct *find_dcookie(unsigned long dcookie)

Type:struct dcookie_struct

Parameter:

TypeParameterName
unsigned longdcookie
68  struct dcookie_struct * found = NULL
73  list = dcookie_hashtable + dcookie_hash(dcookie)
76  dcs = list_entry - get the struct for this entry*@ptr: the &struct list_head pointer.*@type: the type of the struct this is embedded in.*@member: the name of the list_head within the struct.(pos, structdcookie_struct, hash_list)
77  If The dentry is locked, its address will do for the cookie == dcookie Then
78  found = dcs
79  Break
83  Return found
Caller
NameDescribe
get_dcookieThis is the main kernel-side routine that retrieves the cookie* value for a dentry/vfsmnt pair.
do_lookup_dcookieAnd here is where the userspace process can look up the cookie value* to retrieve the path.