函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:thread_lookup_test

函数原型:static int thread_lookup_test(struct thread_data *tdata)

返回类型:int

参数:

类型参数名称
struct thread_data *tdata
603  entries等于entries
604  err等于0
606 i小于entries循环
608  struct test_obj_val key = {id = i, tid = id, }
613  obj等于hashtable_lookup_fast - search hash table, without RCU read lock*@ht: hash table*@key: the pointer to the key*@params: hash table parameters* Computes the hash value for the key and traverses the bucket chain looking* for a entry with an identical key
614  如果objid恒等于TEST_INSERT_FAIL
615  打印错误信息(" found unexpected object %d-%d\n", tid, id)
616  err自加
617  否则如果非objid不等于TEST_INSERT_FAIL
618  打印错误信息(" object %d-%d not found!\n", tid, id)
619  err自加
620  否则如果objmemcmp( & value, & key, key的长度)则
621  打印错误信息(" wrong object returned (got %d-%d, expected %d-%d)\n", tid, id, tid, id)
623  err自加
626  cond_resched()
628  返回:err
调用者
名称描述
threadfunc