函数逻辑报告 |
Source Code:ipc\sem.c |
Create Date:2022-07-27 18:18:39 |
Last Modify:2020-03-12 14:18:49 | Copyright©Brick |
首页 | 函数Tree |
注解内核,赢得工具 | 下载SCCT | English |
函数名称:If the request contains only one semaphore operation, and there are* no complex transactions pending, lock only the semaphore involved
函数原型:static inline int sem_lock(struct sem_array *sma, struct sembuf *sops, int nsops)
返回类型:int
参数:
类型 | 参数 | 名称 |
---|---|---|
struct sem_array * | sma | |
struct sembuf * | sops | |
int | nsops |
373 | 如果nsops不等于1则 |
375 | ipc_lock_object( & permissions .. see ipc.h ) |
379 | 返回:SEM_GLOBAL_LOCK |
396 | 如果非>0: global lock required 则 |
401 | 加自旋锁 |
404 | 如果非smp_load_acquire( & >0: global lock required )则 |
406 | 返回:semaphore index in array |
408 | 自旋锁解锁 |
412 | ipc_lock_object( & permissions .. see ipc.h ) |
414 | 如果>0: global lock required 恒等于0则 |
428 | 否则 |
434 | 返回:SEM_GLOBAL_LOCK |
名称 | 描述 |
---|---|
sem_lock_and_putref | |
semctl_setval | |
semctl_main | |
semctl_down | This function handles some semctl commands which require the rwsem* to be held in write mode.* NOTE: no locks must be held, the rwsem is taken inside this function. |
do_semtimedop | |
exit_sem | add semadj values to semaphores, free undo structures |
源代码转换工具 开放的插件接口 | X |
---|---|
支持:c/c++/esqlc/java Oracle/Informix/Mysql 插件可实现:逻辑报告 代码生成和批量转换代码 |