函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:kernel\locking\semaphore.c Create Date:2022-07-27 10:48:04
Last Modify:2020-03-12 14:18:49 Copyright©Brick
首页 函数Tree
注解内核,赢得工具下载SCCTEnglish

函数名称:down - acquire the semaphore*@sem: the semaphore to be acquired* Acquires the semaphore

函数原型:void down(struct semaphore *sem)

返回类型:void

参数:

类型参数名称
struct semaphore *sem
57  raw_spin_lock_irqsave( & lock, flags)
58  如果此条件成立可能性大(为编译器优化)(count > 0)则count自减
60  否则__down(sem)
62  raw_spin_unlock_irqrestore( & lock, flags)