Home
last modified time | relevance | path

Searched refs:ipc_namespace (Results 1 – 10 of 10) sorted by relevance

/linux/include/linux/
H A Dipc_namespace.h31 struct ipc_namespace { struct
83 extern struct ipc_namespace init_ipc_ns; argument
87 extern void shm_destroy_orphaned(struct ipc_namespace *ns);
89 static inline void shm_destroy_orphaned(struct ipc_namespace *ns) {} in shm_destroy_orphaned()
93 extern int mq_init_ns(struct ipc_namespace *ns);
128 static inline int mq_init_ns(struct ipc_namespace *ns) { return 0; } in mq_init_ns()
132 static inline struct ipc_namespace *to_ipc_ns(struct ns_common *ns) in to_ipc_ns()
134 return container_of(ns, struct ipc_namespace, ns); in to_ipc_ns()
137 extern struct ipc_namespace *copy_ipcs(u64 flags,
138 struct user_namespace *user_ns, struct ipc_namespace *ns);
[all …]
H A Dnsproxy.h11 struct ipc_namespace;
35 struct ipc_namespace *ipc_ns;
H A Dnsfs.h30 struct ipc_namespace *: current->nsproxy->ipc_ns, \
/linux/ipc/
H A Dutil.h55 struct ipc_namespace;
59 extern void mq_clear_sbinfo(struct ipc_namespace *ns);
61 static inline void mq_clear_sbinfo(struct ipc_namespace *ns) { } in mq_clear_sbinfo()
65 void sem_init_ns(struct ipc_namespace *ns);
66 int msg_init_ns(struct ipc_namespace *ns);
67 void shm_init_ns(struct ipc_namespace *ns);
69 void sem_exit_ns(struct ipc_namespace *ns);
70 void msg_exit_ns(struct ipc_namespace *ns);
71 void shm_exit_ns(struct ipc_namespace *ns);
73 static inline void sem_init_ns(struct ipc_namespace *ns) { } in sem_init_ns()
[all …]
H A Dnamespace.c9 #include <linux/ipc_namespace.h>
39 static struct ipc_namespace *create_ipc_ns(struct user_namespace *user_ns, in create_ipc_ns()
40 struct ipc_namespace *old_ns) in create_ipc_ns()
42 struct ipc_namespace *ns; in create_ipc_ns()
61 ns = kzalloc_obj(struct ipc_namespace, GFP_KERNEL_ACCOUNT); in create_ipc_ns()
111 struct ipc_namespace *copy_ipcs(u64 flags, in copy_ipcs()
112 struct user_namespace *user_ns, struct ipc_namespace *ns) in copy_ipcs()
125 * Called for each kind of ipc when an ipc_namespace exits.
127 void free_ipcs(struct ipc_namespace *ns, struct ipc_ids *ids, in free_ipcs()
128 void (*free)(struct ipc_namespace *, struc in free_ipcs() argument
[all...]
H A Dmsg.c102 static inline struct msg_queue *msq_obtain_object(struct ipc_namespace *ns, int id) in msq_obtain_object()
112 static inline struct msg_queue *msq_obtain_object_check(struct ipc_namespace *ns, in msq_obtain_object_check()
123 static inline void msg_rmid(struct ipc_namespace *ns, struct msg_queue *s) in msg_rmid()
144 static int newque(struct ipc_namespace *ns, struct ipc_params *params) in newque()
273 static void freeque(struct ipc_namespace *ns, struct kern_ipc_perm *ipcp) in freeque()
300 struct ipc_namespace *ns; in ksys_msgget()
401 static int msgctl_down(struct ipc_namespace *ns, int msqid, int cmd, in msgctl_down()
477 static int msgctl_info(struct ipc_namespace *ns, int msqid, in msgctl_info()
518 static int msgctl_stat(struct ipc_namespace *ns, int msqid, in msgctl_stat()
599 struct ipc_namespace *ns; in ksys_msgctl()
[all …]
H A Dutil.c339 static int ipcget_new(struct ipc_namespace *ns, struct ipc_ids *ids, in ipcget_new()
365 static int ipc_check_perms(struct ipc_namespace *ns, in ipc_check_perms()
397 static int ipcget_public(struct ipc_namespace *ns, struct ipc_ids *ids, in ipcget_public()
553 int ipcperms(struct ipc_namespace *ns, struct kern_ipc_perm *ipcp, short flag) in ipcperms()
670 int ipcget(struct ipc_namespace *ns, struct ipc_ids *ids, in ipcget()
719 struct kern_ipc_perm *ipcctl_obtain_check(struct ipc_namespace *ns, in ipcctl_obtain_check()
771 struct ipc_namespace *ns;
H A Dmsgutil.c29 struct ipc_namespace init_ipc_ns = {
/linux/include/linux/ns/
H A Dns_common_types.h14 struct ipc_namespace;
24 extern struct ipc_namespace init_ipc_ns;
127 struct ipc_namespace *: &(__ns)->ns, \
128 const struct ipc_namespace *: &(__ns)->ns, \
145 struct ipc_namespace *: IPC_NS_INIT_INO, \
156 struct ipc_namespace *: &init_ipc_ns, \
167 struct ipc_namespace *: IPC_NS_INIT_ID, \
178 struct ipc_namespace *: (IS_ENABLED(CONFIG_IPC_NS) ? &ipcns_operations : NULL), \
198 X(ipc_namespace, CLONE_NEWIPC) \
/linux/arch/arm/kernel/
H A Dsys_oabi-compat.c342 struct ipc_namespace *ns; in sys_oabi_semtimedop()