函数逻辑报告 |
Source Code:lib\test_rhashtable.c |
Create Date:2022-07-27 07:29:10 |
Last Modify:2020-03-12 14:18:49 | Copyright©Brick |
首页 | 函数Tree |
注解内核,赢得工具 | 下载SCCT | English |
函数名称:test_rhltable
函数原型:static int __init test_rhltable(unsigned int entries)
返回类型:int
参数:
类型 | 参数 | 名称 |
---|---|---|
unsigned int | entries |
281 | 如果非rhl_test_objects则返回:负ENOMEM |
287 | 如果非obj_in_table则转到:out_free |
294 | k等于prandom_u32() |
295 | ret等于0 |
313 | struct test_obj_val key = {id = k, } |
322 | 退出 |
325 | 如果i则 |
333 | cond_resched_rcu() |
335 | found = false |
351 | 如果err恒等于0则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 | 如果prand恒等于0则prand等于prandom_u32() |
379 | 如果prand按位与1则 |
380 | prand右移等于1位 |
381 | 继续下一循环 |
389 | 否则 |
395 | 如果prand按位与1则 |
396 | prand右移等于1位 |
397 | 继续下一循环 |
401 | 如果err恒等于0则 |
402 | 如果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)则继续下一循环 |
404 | 否则 |
405 | 如果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)则继续下一循环 |
409 | 如果prand按位与1则 |
410 | prand右移等于1位 |
411 | 继续下一循环 |
420 | 否则 |
429 | cond_resched() |
434 | 否则 |
441 | rhltable_destroy( & rhlt) |
442 | out_free : |
443 | vfree(rhl_test_objects) |
444 | vfree(obj_in_table) |
445 | 返回:ret |
名称 | 描述 |
---|---|
test_rht_init |
源代码转换工具 开放的插件接口 | X |
---|---|
支持:c/c++/esqlc/java Oracle/Informix/Mysql 插件可实现:逻辑报告 代码生成和批量转换代码 |