Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:fs\dcache.c Create Date:2022-07-28 20:07:29
Last Modify:2020-03-18 10:27:32 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name:__d_lookup_rcu - search for a dentry (racy, store-free)*@parent: parent dentry*@name: qstr of name we wish to find*@seqp: returns d_seq value at the point where the dentry was found* Returns: dentry, or NULL* __d_lookup_rcu is the dcache lookup function

Proto:struct dentry *__d_lookup_rcu(const struct dentry *parent, const struct qstr *name, unsigned *seqp)

Type:struct dentry

Parameter:

TypeParameterName
const struct dentry *parent
const struct qstr *name
unsigned *seqp
2218  hashlen = hash_len
2219  str = name
2220  b = d_hash(A hash_len is a u64 with the hash of a string in the low* half and the length in the high half.(hashlen))
2247  seqretry :
2265  seq = aw_seqcount_begin - begin a seq-read critical section*@s: pointer to seqcount_t* Returns: count to be passed to read_seqcount_retry* raw_seqcount_begin opens a read critical section of the given seqcount
2266  If parent directory != parent Then Continue
2268  If d_unhashed - is dentry hashed*@dentry: entry to check* Returns true if the dentry passed is not currently hashed. Then Continue
2271  If Value for the false possibility is greater at compile time( protected by d_lock & DCACHE_OP_COMPARE) Then
2274  If hash != A hash_len is a u64 with the hash of a string in the low* half and the length in the high half.(hashlen) Then Continue
2276  tlen = len
2277  tname = name
2280  cpu_relax()
2281  Go to seqretry
2283  If d_compare(dentry, tlen, tname, name) != 0 Then Continue
2286  Else
2287  If hash_len != hashlen Then Continue
2289  If dentry_cmp(dentry, str, hashlen_len(hashlen)) != 0 Then Continue
2292  seqp = seq
2293  Return dentry
2295  Return NULL
Caller
NameDescribe
d_alloc_parallel