Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:down - acquire the semaphore*@sem: the semaphore to be acquired* Acquires the semaphore

Proto:void down(struct semaphore *sem)

Type:void

Parameter:

TypeParameterName
struct semaphore *sem
57  raw_spin_lock_irqsave( & lock, flags)
58  If Value is more likely to compile time(count > 0) Then count--
60  Else __down(sem)
62  raw_spin_unlock_irqrestore( & lock, flags)