Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:rht_deferred_worker

Proto:static void rht_deferred_worker(struct work_struct *work)

Type:void

Parameter:

TypeParameterName
struct work_struct *work
402  err = 0
404  ht = container_of - cast a member of a structure out to the containing structure*@ptr: the pointer to the member.*@type: the type of the container struct this is embedded in.*@member: the name of the member within the struct.(work, structrhashtable, run_work)
405  mutex_lock( & mutex)
407  tbl = rht_dereference(tbl, ht)
408  tbl = rhashtable_last_table(ht, tbl)
410  If ht_grow_above_75 - returns true if nelems > 0.75 * table-size*@ht: hash table*@tbl: current table Then err = rhashtable_rehash_alloc(ht, tbl, size * 2)
412  Else if automatic_shrinking && ht_shrink_below_30 - returns true if nelems < 0.3 * table-size*@ht: hash table*@tbl: current table Then err = hashtable_shrink - Shrink hash table while allowing concurrent lookups*@ht: the hash table to shrink* This function shrinks the hash table to fit, i
414  Else if nest Then err = rhashtable_rehash_alloc(ht, tbl, size)
417  If Not err || err == -EEXIST Then
420  nerr = rhashtable_rehash_table(ht)
421  err = If err Else nerr
424  mutex_unlock( & mutex)
426  If err Then schedule_work - put work task in global workqueue*@work: job to be done* Returns %false if @work was already on the kernel-global workqueue and* %true otherwise