Function report |
Source Code:kernel\locking\locktorture.c |
Create Date:2022-07-28 09:54:28 |
Last Modify:2020-03-12 14:18:49 | Copyright©Brick |
home page | Tree |
Annotation kernel can get tool activity | Download SCCT | Chinese |
Name:Lock torture reader kthread. Repeatedly acquires and releases* the reader lock.
Proto:static int lock_torture_reader(void *arg)
Type:int
Parameter:
Type | Parameter | Name |
---|---|---|
void * | arg |
658 | static |
660 | VERBOSE_TOROUT_STRING("lock_torture_reader task started") |
663 | Do |
664 | If (torture_random( & rand) & 0xfffff) == 0 Then schedule_timeout_uninterruptible(1) |
667 | readlock() |
668 | lock_is_read_held = 1 |
669 | If WARN_ON_ONCE(lock_is_write_held) Then n_lock_fail++ |
672 | n_lock_acquired++ |
673 | read_delay( & rand) |
674 | lock_is_read_held = 0 |
675 | readunlock() |
678 | When Not Is it time for the current torture test to stop? cycle |
680 | Return 0 |
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 |