Function report |
Source Code:kernel\locking\test-ww_mutex.c |
Create Date:2022-07-28 09:55:19 |
Last Modify:2020-03-12 14:18:49 | Copyright©Brick |
home page | Tree |
Annotation kernel can get tool activity | Download SCCT | Chinese |
Name:stress
Proto:static int stress(int nlocks, int nthreads, unsigned int flags)
Type:int
Parameter:
Type | Parameter | Name |
---|---|---|
int | nlocks | |
int | nthreads | |
unsigned int | flags |
529 | locks = kmalloc_array - allocate memory for an array.*@n: number of elements.*@size: element size.*@flags: the type of memory to allocate (see kmalloc). |
538 | void( * fn)(struct work_struct * work) |
540 | fn = NULL |
542 | Case & == 0 |
543 | If flags & STRESS_INORDER Then fn = stress_inorder_work |
545 | Break |
546 | Case & == 1 |
547 | If flags & STRESS_REORDER Then fn = stress_reorder_work |
549 | Break |
550 | Case & == 2 |
551 | If flags & STRESS_ONE Then fn = stress_one_work |
553 | Break |
556 | If Not fn Then Continue |
559 | stress = Allocation memory |
560 | If Not stress Then Break |
569 | nthreads-- |
578 | Return 0 |
Name | Describe |
---|---|
test_ww_mutex_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 |