Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:lib\rhashtable.c Create Date:2022-07-28 06:25:03
Last Modify:2020-03-12 14:18:49 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name:rhashtable_rehash_table

Proto:static int rhashtable_rehash_table(struct rhashtable *ht)

Type:int

Parameter:

TypeParameterName
struct rhashtable *ht
305  old_tbl = rht_dereference(tbl, ht)
311  new_tbl = rht_dereference(future_tbl, ht)
312  If Not new_tbl Then Return 0
315  When old_hash < size cycle
316  err = rhashtable_rehash_chain(ht, old_hash)
317  If err Then Return err
319  cond_resched()
323  cu_assign_pointer() - assign to RCU-protected pointer*@p: pointer to assign to*@v: value to assign (publish)* Assigns the specified value to the specified RCU-protected* pointer, ensuring that any concurrent RCU readers will see* any prior initialization(tbl, new_tbl)
325  spin_lock( & lock)
326  list_for_each_entry - iterate over list of given type*@pos: the type * to use as a loop cursor.*@head: the head for your list.*@member: the name of the list_head within the struct.(walker, & walkers, list)
327  tbl = NULL
336  Post an RCU callback to be invoked after the end of an RCU grace* period. But since we have but one CPU, that would be after any* quiescent state.
337  spin_unlock( & lock)
339  Return If rht_dereference(future_tbl, ht) Then -EAGAIN Else 0
Caller
NameDescribe
rht_deferred_worker