Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:__down_interruptible

Proto:static noinline int __sched __down_interruptible(struct semaphore *sem)

Type:int

Parameter:

TypeParameterName
struct semaphore *sem
242  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_interruptibledown_interruptible - acquire the semaphore unless interrupted*@sem: the semaphore to be acquired* Attempts to acquire the semaphore. If no more tasks are allowed to* acquire the semaphore, calling this function will put the task to sleep.