Function report |
Source Code:lib\rhashtable.c |
Create Date:2022-07-28 06:25:01 |
| Last Modify:2020-03-12 14:18:49 | Copyright©Brick |
| home page | Tree |
| Annotation kernel can get tool activity | Download SCCT | Chinese |
Name:rhashtable_rehash_one
Proto:static int rhashtable_rehash_one(struct rhashtable *ht, struct rhash_lock_head **bkt, unsigned int old_hash)
Type:int
Parameter:
| Type | Parameter | Name |
|---|---|---|
| struct rhashtable * | ht | |
| struct rhash_lock_head ** | bkt | |
| unsigned int | old_hash |
| 219 | old_tbl = rht_dereference(tbl, ht) |
| 220 | new_tbl = rhashtable_last_table(ht, old_tbl) |
| 223 | struct rhash_head __rcu * * pprev = NULL |
| 233 | err = 0 |
| 234 | next = rht_dereference_bucket(next, old_tbl, old_hash) |
| 236 | If rht_is_a_nulls(next) Then Break |
| 245 | new_hash = head_hashfn(ht, new_tbl, entry) |
| 253 | rht_assign_unlock(new_tbl, & buckets[new_hash], entry) |
| 257 | Else rht_assign_locked(bkt, next) |
| 261 | out : |
| 262 | Return err |
| Name | Describe |
|---|---|
| rhashtable_rehash_chain |
| Source code conversion tool public plug-in interface | X |
|---|---|
| Support c/c++/esqlc/java Oracle/Informix/Mysql Plug-in can realize: logical Report Code generation and batch code conversion |