函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:__down_interruptible

函数原型:static noinline int __sched __down_interruptible(struct semaphore *sem)

返回类型:int

参数:

类型参数名称
struct semaphore *sem
242  返回: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.
调用者
名称描述
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.