函数逻辑报告

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

函数名称:Return the "hash_len" (hash and length) of a null-terminated string

函数原型:u64 hashlen_string(const void *salt, const char *name)

返回类型:u64

参数:

类型参数名称
const void *salt
const char *name
2014  hash等于Hash courtesy of the R5 hash in reiserfs modulo sign bits (salt)
2015  len等于0
2017  c = (unsigned char) * name
2018 c循环
2019  len自加
2020  hash等于partial hash update function. Assume roughly 4 bits per character
2021  c等于name[len]
2023  返回: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)
调用者
名称描述
d_alloc_name
test_hash_init