Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:usermodehelper_read_lock_wait

Proto:long usermodehelper_read_lock_wait(long timeout)

Type:long

Parameter:

TypeParameterName
longtimeout
265  DEFINE_WAIT(wait)
267  If timeout < 0 Then Return -EINVAL
270  lock for reading
271  cycle
272  Waitqueues which are removed from the waitqueue_head at wakeup time
274  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
277  lease a read lock
279  timeout = schedule_timeout(timeout)
280  If Not timeout Then Break
283  lock for reading
285  finish_wait( & Used by usermodehelper_read_lock_wait() to wait for usermodehelper_disabled* to become 'false'., & wait)
286  Return timeout