Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:ipc\sem.c Create Date:2022-07-28 16:43:39
Last Modify:2020-03-12 14:18:49 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name:ksys_semget

Proto:long ksys_semget(key_t key, int nsems, int semflg)

Type:long

Parameter:

TypeParameterName
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  If nsems < 0 || nsems > sc_semmsl Then Return -EINVAL
596  key = key
597  flg = semflg
598  for semaphores = nsems
600  Return 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.
Caller
NameDescribe
SYSCALL_DEFINE3
ksys_ipc