Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:thread_lookup_test

Proto:static int thread_lookup_test(struct thread_data *tdata)

Type:int

Parameter:

TypeParameterName
struct thread_data *tdata
603  entries = entries
604  err = 0
606  When i < entries cycle
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  If obj && id == TEST_INSERT_FAIL Then
615  pr_err(" found unexpected object %d-%d\n", tid, id)
616  err++
617  Else if Not obj && id != TEST_INSERT_FAIL Then
618  pr_err(" object %d-%d not found!\n", tid, id)
619  err++
620  Else if obj && memcmp( & value, & key, size of key ) Then
621  pr_err(" wrong object returned (got %d-%d, expected %d-%d)\n", tid, id, tid, id)
623  err++
626  cond_resched()
628  Return err
Caller
NameDescribe
threadfunc