函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:We know there's a real path component here of at least* one character.

函数原型:static inline u64 hash_name(const void *salt, const char *name)

返回类型:u64

参数:

类型参数名称
const void *salt
const char *name
2033  hash等于Hash courtesy of the R5 hash in reiserfs modulo sign bits (salt)
2034  len等于0
2036  c = (unsigned char) * name
2037  循环
2038  len自加
2039  hash等于partial hash update function. Assume roughly 4 bits per character
2040  c等于name[len]
2041 cc不等于'/'循环
2042  返回:hashlen_create(Finally: cut down the number of bits to a int value (and try to avoid* losing bits). This also has the property (wanted by the dcache)* that the msbits make a good hash table index., len)
调用者
名称描述
link_path_walkName resolution.* This is the basic name resolution function, turning a pathname into* the final dentry. We expect 'base' to be positive and a directory.* Returns 0 and nd will have valid dentry and mnt on success.