函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:fs\dcookies.c Create Date:2022-07-29 11:11:12
Last Modify:2020-03-12 14:18:49 Copyright©Brick
首页 函数Tree
注解内核,赢得工具下载SCCTEnglish

函数名称:find_dcookie

函数原型:static struct dcookie_struct *find_dcookie(unsigned long dcookie)

返回类型:struct dcookie_struct

参数:

类型参数名称
unsigned longdcookie
68  struct dcookie_struct * found = NULL
73  list等于dcookie_hashtabledcookie_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  如果The dentry is locked, its address will do for the cookie 恒等于dcookie
78  found等于dcs
79  退出
83  返回:found
调用者
名称描述
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.