函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:ipc\shm.c Create Date:2022-07-27 18:22:32
Last Modify:2020-03-17 22:58:32 Copyright©Brick
首页 函数Tree
注解内核,赢得工具下载SCCTEnglish

函数名称:ksys_shmget

函数原型:long ksys_shmget(key_t key, size_t size, int shmflg)

返回类型:long

参数:

类型参数名称
key_tkey
size_tsize
intshmflg
729  static const struct ipc_ops shm_ops = {getnew = newseg, associate = security_shm_associate, more_checks = Called with shm_ids.rwsem and ipcp locked., }
736  ns等于ipc_ns
738  key等于key
739  flg等于shmflg
740  for shared memories 等于size
742  返回: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