Lines Matching refs:new
239 * @new: new IPC permission set
242 * Add an entry 'new' to the IPC ids idr. The permissions object is
244 * is returned. The 'new' entry is returned in a locked state on success.
250 int ipc_addid(struct ipc_ids* ids, struct kern_ipc_perm* new, int size)
262 spin_lock_init(&new->lock);
263 new->deleted = 0;
265 spin_lock(&new->lock);
267 err = idr_get_new(&ids->ipcs_idr, new, &id);
269 spin_unlock(&new->lock);
277 new->cuid = new->uid = euid;
278 new->gid = new->cgid = egid;
280 new->seq = ids->seq++;
284 new->id = ipc_buildid(id, new->seq);
289 * ipcget_new - create a new ipc object
349 * ipcget_public - get an ipc object or create a new one
357 * It adds a new entry if the key is not found and does some permission
373 * a new entry + read locks are not "upgradable"
638 * old/new ipc_perm structures
644 * @out: new style IPC permissions
663 * ipc64_perm_to_ipc_perm - convert new ipc permissions to old
664 * @in: new style IPC permissions
667 * Turn the new style permissions object @in into a compatibility
820 * Return IPC_64 for new style IPC and IPC_OLD for old style IPC.