函数逻辑报告 |
Source Code:kernel\locking\semaphore.c |
Create Date:2022-07-27 10:48:07 |
Last Modify:2020-03-12 14:18:49 | Copyright©Brick |
首页 | 函数Tree |
注解内核,赢得工具 | 下载SCCT | English |
函数名称:down_timeout - acquire the semaphore within a specified time*@sem: the semaphore to be acquired*@timeout: how long to wait before failing* Attempts to acquire the semaphore. If no more tasks are allowed to
函数原型:int down_timeout(struct semaphore *sem, long timeout)
返回类型:int
参数:
类型 | 参数 | 名称 |
---|---|---|
struct semaphore * | sem | |
long | timeout |
158 | result等于0 |
160 | raw_spin_lock_irqsave( & lock, flags) |
161 | 如果此条件成立可能性大(为编译器优化)(count > 0)则count自减 |
163 | 否则result等于__down_timeout(sem, timeout) |
165 | raw_spin_unlock_irqrestore( & lock, flags) |
167 | 返回:result |
源代码转换工具 开放的插件接口 | X |
---|---|
支持:c/c++/esqlc/java Oracle/Informix/Mysql 插件可实现:逻辑报告 代码生成和批量转换代码 |