Function report |
Source Code:lib\test_rhashtable.c |
Create Date:2022-07-28 06:31:40 |
| Last Modify:2020-03-12 14:18:49 | Copyright©Brick |
| home page | Tree |
| Annotation kernel can get tool activity | Download SCCT | Chinese |
Name:test_rhltable
Proto:static int __init test_rhltable(unsigned int entries)
Type:int
Parameter:
| Type | Parameter | Name |
|---|---|---|
| unsigned int | entries |
| 281 | If Not rhl_test_objects Then Return -ENOMEM |
| 287 | If Not obj_in_table Then Go to out_free |
| 294 | k = prandom_u32() |
| 295 | ret = 0 |
| 313 | struct test_obj_val key = {id = k, } |
| 325 | If i Then |
| 333 | cond_resched_rcu() |
| 335 | found = false |
| 339 | found = true |
| 340 | Break |
| 351 | If err == 0 Then lear_bit - Clears a bit in memory*@nr: Bit to clear*@addr: Address to start counting from* This is a relaxed atomic operation (no implied memory barriers). |
| 359 | WARN(st_bit - Determine whether a bit is set*@nr: bit number to test*@addr: Address to start counting from, "elem %d allegedly still present", i) |
| 372 | prand = prandom_u32() |
| 374 | cond_resched() |
| 376 | If prand == 0 Then prand = prandom_u32() |
| 379 | If prand & 1 Then |
| 380 | prand >>= 1 |
| 381 | Continue |
| 389 | Else |
| 395 | If prand & 1 Then |
| 396 | prand >>= 1 |
| 397 | Continue |
| 401 | If err == 0 Then |
| 402 | If WARN(st_and_set_bit - Set a bit and return its old value*@nr: Bit to set*@addr: Address to count from* This is an atomic fully-ordered operation (implied full memory barrier)., "succeeded to insert same object %d", i) Then Continue |
| 404 | Else |
| 405 | If WARN(!st_bit - Determine whether a bit is set*@nr: bit number to test*@addr: Address to start counting from, "failed to insert object %d", i) Then Continue |
| 409 | If prand & 1 Then |
| 410 | prand >>= 1 |
| 411 | Continue |
| 420 | Else |
| 429 | cond_resched() |
| 434 | Else |
| 441 | rhltable_destroy( & rhlt) |
| 442 | out_free : |
| 443 | vfree(rhl_test_objects) |
| 444 | vfree(obj_in_table) |
| 445 | Return ret |
| Name | Describe |
|---|---|
| test_rht_init |
| 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 |