函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:Enter the mode suitable for non-simple operations:* Caller must own sem_perm.lock.

函数原型:static void complexmode_enter(struct sem_array *sma)

返回类型:void

参数:

类型参数名称
struct sem_array *sma
316  如果>0: global lock required 大于0则
322  >0: global lock required 等于Switching from the mode suitable for simple ops* to the mode for complex ops is costly. Therefore:* use some hysteresis
323  返回
325  >0: global lock required 等于Switching from the mode suitable for simple ops* to the mode for complex ops is costly. Therefore:* use some hysteresis
327 i小于. of semaphores in array 循环
328  sem等于sems[i]
329  加自旋锁
330  自旋锁解锁
调用者
名称描述
sem_lockIf the request contains only one semaphore operation, and there are* no complex transactions pending, lock only the semaphore involved
sysvipc_sem_proc_show