函数逻辑报告 |
Source Code:ipc\sem.c |
Create Date:2022-07-27 18:18:49 |
| Last Modify:2020-03-12 14:18:49 | Copyright©Brick |
| 首页 | 函数Tree |
| 注解内核,赢得工具 | 下载SCCT | English |
函数名称:wary - Create a new semaphore set*@ns: namespace*@params: ptr to the structure that contains key, semflg and nsems* Called with sem_ids.rwsem held (as a writer)
函数原型:static int newary(struct ipc_namespace *ns, struct ipc_params *params)
返回类型:int
参数:
| 类型 | 参数 | 名称 |
|---|---|---|
| struct ipc_namespace * | ns | |
| struct ipc_params * | params |
| 514 | nsems等于 for semaphores |
| 530 | security = NULL |
| 531 | retval等于security_sem_alloc( & permissions .. see ipc.h ) |
| 532 | 如果retval则 |
| 534 | 返回:retval |
| 543 | pending complex operations 等于0 |
| 544 | >0: global lock required 等于Switching from the mode suitable for simple ops* to the mode for complex ops is costly. Therefore:* use some hysteresis |
| 545 | 初始化链表头 |
| 546 | 初始化链表头 |
| 547 | 初始化链表头 |
| 552 | retval等于pc_addid - add an ipc identifier*@ids: ipc identifier set*@new: new ipc permission set*@limit: limit for the number of used ids* Add an entry 'new' to the ipc ids idr |
| 553 | 如果retval小于0则 |
| 555 | 返回:retval |
| 559 | sem_unlock(sma, - 1) |
| 562 | 返回:id |
| 源代码转换工具 开放的插件接口 | X |
|---|---|
| 支持:c/c++/esqlc/java Oracle/Informix/Mysql 插件可实现:逻辑报告 代码生成和批量转换代码 |