Home
last modified time | relevance | path

Searched refs:ids (Results 1 – 7 of 7) sorted by relevance

/ipc/
Dutil.c76 int ids; member
115 void ipc_init_ids(struct ipc_ids *ids) in ipc_init_ids() argument
117 ids->in_use = 0; in ipc_init_ids()
118 ids->seq = 0; in ipc_init_ids()
119 init_rwsem(&ids->rwsem); in ipc_init_ids()
120 rhashtable_init(&ids->key_ht, &ipc_kht_params); in ipc_init_ids()
121 idr_init(&ids->ipcs_idr); in ipc_init_ids()
122 ids->max_idx = -1; in ipc_init_ids()
123 ids->last_idx = -1; in ipc_init_ids()
125 ids->next_id = -1; in ipc_init_ids()
[all …]
Dutil.h115 void ipc_init_ids(struct ipc_ids *ids);
118 int ids, int (*show)(struct seq_file *, void *));
121 #define ipc_init_proc_interface(path, header, ids, show) do {} while (0) argument
153 static inline int ipc_get_maxidx(struct ipc_ids *ids) in ipc_get_maxidx() argument
155 if (ids->in_use == 0) in ipc_get_maxidx()
158 if (ids->in_use == ipc_mni) in ipc_get_maxidx()
161 return ids->max_idx; in ipc_get_maxidx()
177 struct kern_ipc_perm *ipc_obtain_object_idr(struct ipc_ids *ids, int id);
183 struct ipc_ids *ids, int id, int cmd,
243 struct kern_ipc_perm *ipc_obtain_object_check(struct ipc_ids *ids, int id);
[all …]
Dipc_sysctl.c199 .data = &init_ipc_ns.ids[IPC_SEM_IDS].next_id,
200 .maxlen = sizeof(init_ipc_ns.ids[IPC_SEM_IDS].next_id),
208 .data = &init_ipc_ns.ids[IPC_MSG_IDS].next_id,
209 .maxlen = sizeof(init_ipc_ns.ids[IPC_MSG_IDS].next_id),
217 .data = &init_ipc_ns.ids[IPC_SHM_IDS].next_id,
218 .maxlen = sizeof(init_ipc_ns.ids[IPC_SHM_IDS].next_id),
Dnamespace.c95 void free_ipcs(struct ipc_namespace *ns, struct ipc_ids *ids, in free_ipcs() argument
102 down_write(&ids->rwsem); in free_ipcs()
104 in_use = ids->in_use; in free_ipcs()
107 perm = idr_find(&ids->ipcs_idr, next_id); in free_ipcs()
115 up_write(&ids->rwsem); in free_ipcs()
Dmsg.c99 #define msg_ids(ns) ((ns)->ids[IPC_MSG_IDS])
1308 ipc_init_ids(&ns->ids[IPC_MSG_IDS]); in msg_init_ns()
1315 idr_destroy(&ns->ids[IPC_MSG_IDS].ipcs_idr); in msg_exit_ns()
1316 rhashtable_destroy(&ns->ids[IPC_MSG_IDS].key_ht); in msg_exit_ns()
Dsem.c169 #define sem_ids(ns) ((ns)->ids[IPC_SEM_IDS])
256 ipc_init_ids(&ns->ids[IPC_SEM_IDS]); in sem_init_ns()
263 idr_destroy(&ns->ids[IPC_SEM_IDS].ipcs_idr); in sem_exit_ns()
264 rhashtable_destroy(&ns->ids[IPC_SEM_IDS].key_ht); in sem_exit_ns()
Dshm.c95 #define shm_ids(ns) ((ns)->ids[IPC_SHM_IDS])
142 idr_destroy(&ns->ids[IPC_SHM_IDS].ipcs_idr); in shm_exit_ns()
143 rhashtable_destroy(&ns->ids[IPC_SHM_IDS].key_ht); in shm_exit_ns()