Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:p - release the semaphore*@sem: the semaphore to release* Release the semaphore. Unlike mutexes, up() may be called from any* context and even by tasks which have never called down().

Proto:void up(struct semaphore *sem)

Type:void

Parameter:

TypeParameterName
struct semaphore *sem
182  raw_spin_lock_irqsave( & lock, flags)
183  If Value is more likely to compile time(list_empty - tests whether a list is empty*@head: the list to test.) Then count++
185  Else __up(sem)
187  raw_spin_unlock_irqrestore( & lock, flags)
Caller
NameDescribe
__up_console_sem