Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:include\linux\stringhash.h Create Date:2022-07-28 05:41:54
Last Modify:2020-03-12 14:18:49 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name:partial hash update function. Assume roughly 4 bits per character

Proto:static inline unsigned long partial_name_hash(unsigned long c, unsigned long prevhash)

Type:unsigned long

Parameter:

TypeParameterName
unsigned longc
unsigned longprevhash
45  Return ( prevhash + (c << 4) + (c >> 4)) * 11
Caller
NameDescribe
full_name_hashReturn the hash of a string of known length
hashlen_stringReturn the "hash_len" (hash and length) of a null-terminated string
hash_nameWe know there's a real path component here of at least* one character.