函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:ksys_semget

函数原型:long ksys_semget(key_t key, int nsems, int semflg)

返回类型:long

参数:

类型参数名称
key_tkey
intnsems
intsemflg
584  static const struct ipc_ops sem_ops = {getnew = newary, associate = security_sem_associate, more_checks = Called with sem_ids.rwsem and ipcp locked., }
591  ns等于ipc_ns
593  如果nsems小于0或nsems大于sc_semmsl则返回:负EINVAL
596  key等于key
597  flg等于semflg
598  for semaphores 等于nsems
600  返回:pcget - Common sys_*get() code*@ns: namespace*@ids: ipc identifier set*@ops: operations to be called on ipc object creation, permission checks* and further checks*@params: the parameters needed by the previous operations.
调用者
名称描述
SYSCALL_DEFINE3
ksys_ipc