函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:usermodehelper_read_trylock

函数原型:int usermodehelper_read_trylock(void)

返回类型:int

参数:

235  DEFINE_WAIT(wait)
236  ret等于0
238  lock for reading
239  循环
240  Waitqueues which are removed from the waitqueue_head at wakeup time
242  如果非If set, call_usermodehelper_exec() will exit immediately returning -EBUSY* (used for preventing user land processes from being created after the user* land has been frozen during a system-wide hibernation or suspend operation).退出
245  如果If set, call_usermodehelper_exec() will exit immediately returning -EBUSY* (used for preventing user land processes from being created after the user* land has been frozen during a system-wide hibernation or suspend operation).恒等于UMH_DISABLEDret等于负EAGAIN
248  lease a read lock
250  如果ret退出
253  schedule()
254  try_to_freeze()
256  lock for reading
258  finish_wait( & Used by usermodehelper_read_lock_wait() to wait for usermodehelper_disabled* to become 'false'., & wait)
259  返回:ret