Home
last modified time | relevance | path

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

/ipc/
Dutil.c75 int ids; member
114 void ipc_init_ids(struct ipc_ids *ids) in ipc_init_ids() argument
116 ids->in_use = 0; in ipc_init_ids()
117 ids->seq = 0; in ipc_init_ids()
118 init_rwsem(&ids->rwsem); in ipc_init_ids()
119 rhashtable_init(&ids->key_ht, &ipc_kht_params); in ipc_init_ids()
120 idr_init(&ids->ipcs_idr); in ipc_init_ids()
121 ids->max_idx = -1; in ipc_init_ids()
122 ids->last_idx = -1; in ipc_init_ids()
124 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
150 static inline int ipc_get_maxidx(struct ipc_ids *ids) in ipc_get_maxidx() argument
152 if (ids->in_use == 0) in ipc_get_maxidx()
155 if (ids->in_use == ipc_mni) in ipc_get_maxidx()
158 return ids->max_idx; in ipc_get_maxidx()
174 struct kern_ipc_perm *ipc_obtain_object_idr(struct ipc_ids *ids, int id);
180 struct ipc_ids *ids, int id, int cmd,
240 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.c89 #define msg_ids(ns) ((ns)->ids[IPC_MSG_IDS])
1274 ipc_init_ids(&ns->ids[IPC_MSG_IDS]); in msg_init_ns()
1281 idr_destroy(&ns->ids[IPC_MSG_IDS].ipcs_idr); in msg_exit_ns()
1282 rhashtable_destroy(&ns->ids[IPC_MSG_IDS].key_ht); in msg_exit_ns()
Dsem.c169 #define sem_ids(ns) ((ns)->ids[IPC_SEM_IDS])
231 ipc_init_ids(&ns->ids[IPC_SEM_IDS]); in sem_init_ns()
238 idr_destroy(&ns->ids[IPC_SEM_IDS].ipcs_idr); in sem_exit_ns()
239 rhashtable_destroy(&ns->ids[IPC_SEM_IDS].key_ht); in sem_exit_ns()
Dshm.c86 #define shm_ids(ns) ((ns)->ids[IPC_SHM_IDS])
132 idr_destroy(&ns->ids[IPC_SHM_IDS].ipcs_idr); in shm_exit_ns()
133 rhashtable_destroy(&ns->ids[IPC_SHM_IDS].key_ht); in shm_exit_ns()