函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:lib\rhashtable.c Create Date:2022-07-27 07:22:16
Last Modify:2020-03-12 14:18:49 Copyright©Brick
首页 函数Tree
注解内核,赢得工具下载SCCTEnglish

函数名称:rht_deferred_worker

函数原型:static void rht_deferred_worker(struct work_struct *work)

返回类型:void

参数:

类型参数名称
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  如果ht_grow_above_75 - returns true if nelems > 0.75 * table-size*@ht: hash table*@tbl: current tableerr等于rhashtable_rehash_alloc(ht, tbl, size * 2)
412  否则如果automatic_shrinkinght_shrink_below_30 - returns true if nelems < 0.3 * table-size*@ht: hash table*@tbl: current tableerr等于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  否则如果nesterr等于rhashtable_rehash_alloc(ht, tbl, size)
417  如果非errerr恒等于负EEXIST
420  nerr等于rhashtable_rehash_table(ht)
421  err等于如果err否则nerr
424  mutex_unlock( & mutex)
426  如果errschedule_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