函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:Lock torture writer kthread. Repeatedly acquires and releases* the lock, checking for duplicate acquisitions.

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

返回类型:int

参数:

类型参数名称
void *arg
620  lwsp等于arg
621  static
623  VERBOSE_TOROUT_STRING("lock_torture_writer task started")
624  set_user_nice(当前进程, MAX_NICE)
626  循环
627  如果torture_random( & rand)按位与0xfffff的值恒等于0则schedule_timeout_uninterruptible(1)
630  task_boost( & rand)
631  writelock()
632  如果WARN_ON_ONCE(lock_is_write_held)则n_lock_fail自加
634  lock_is_write_held等于1
635  如果WARN_ON_ONCE(lock_is_read_held)则n_lock_fail自加
638  n_lock_acquired自加
639  write_delay( & rand)
640  lock_is_write_held等于0
641  writeunlock()
643  Task stuttering, which forces load/no-load transitions.
644  当非Is it time for the current torture test to stop?循环
646  task_boost(NULL)
647  Each kthread must wait for kthread_should_stop() before returning from* its top-level function, otherwise segfaults ensue
648  返回:0