Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:kernel\umh.c Create Date:2022-07-28 09:22:38
Last Modify:2020-03-12 14:18:49 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name:usermodehelper_read_trylock

Proto:int usermodehelper_read_trylock(void)

Type:int

Parameter:Nothing

235  DEFINE_WAIT(wait)
236  ret = 0
238  lock for reading
239  cycle
240  Waitqueues which are removed from the waitqueue_head at wakeup time
242  If Not 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). Then Break
245  If 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_DISABLED Then ret = -EAGAIN
248  lease a read lock
250  If ret Then Break
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  Return ret