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

Proto:static noinline void __sched __down(struct semaphore *sem)

Type:void

Parameter:

TypeParameterName
struct semaphore *sem
237  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
downdown - acquire the semaphore*@sem: the semaphore to be acquired* Acquires the semaphore