Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:__down_timeout

Proto:static noinline int __sched __down_timeout(struct semaphore *sem, long timeout)

Type:int

Parameter:

TypeParameterName
struct semaphore *sem
longtimeout
252  Return Because this function is inlined, the 'state' parameter will be* constant, and thus optimised away by the compiler. Likewise the* 'timeout' parameter for the cases without timeouts.
Caller
NameDescribe
down_timeoutdown_timeout - acquire the semaphore within a specified time*@sem: the semaphore to be acquired*@timeout: how long to wait before failing* Attempts to acquire the semaphore. If no more tasks are allowed to