函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:kernel\locking\locktorture.c Create Date:2022-07-27 10:54:42
Last Modify:2020-03-12 14:18:49 Copyright©Brick
首页 函数Tree
注解内核,赢得工具下载SCCTEnglish

函数名称:Lock torture reader kthread. Repeatedly acquires and releases* the reader lock.

函数原型:static int lock_torture_reader(void *arg)

返回类型:int

参数:

类型参数名称
void *arg
657  lrsp等于arg
658  static
660  VERBOSE_TOROUT_STRING("lock_torture_reader task started")
661  set_user_nice(当前进程, MAX_NICE)
663  循环
664  如果torture_random( & rand)按位与0xfffff的值恒等于0则schedule_timeout_uninterruptible(1)
667  readlock()
668  lock_is_read_held等于1
669  如果WARN_ON_ONCE(lock_is_write_held)则n_lock_fail自加
672  n_lock_acquired自加
673  read_delay( & rand)
674  lock_is_read_held等于0
675  readunlock()
677  Task stuttering, which forces load/no-load transitions.
678  当非Is it time for the current torture test to stop?循环
679  Each kthread must wait for kthread_should_stop() before returning from* its top-level function, otherwise segfaults ensue
680  返回:0