Home
last modified time | relevance | path

Searched refs:new (Results 1 – 5 of 5) sorted by relevance

/ipc/
Dutil.c202 static inline int ipc_idr_alloc(struct ipc_ids *ids, struct kern_ipc_perm *new) in ipc_idr_alloc() argument
246 new->seq = ids->seq; in ipc_idr_alloc()
251 idr_replace(&ids->ipcs_idr, new, idx); in ipc_idr_alloc()
254 new->seq = ipcid_to_seqx(next_id); in ipc_idr_alloc()
255 idx = idr_alloc(&ids->ipcs_idr, new, ipcid_to_idx(next_id), in ipc_idr_alloc()
259 new->id = (new->seq << ipcmni_seq_shift()) + idx; in ipc_idr_alloc()
278 int ipc_addid(struct ipc_ids *ids, struct kern_ipc_perm *new, int limit) in ipc_addid() argument
285 refcount_set(&new->refcount, 1); in ipc_addid()
295 spin_lock_init(&new->lock); in ipc_addid()
297 spin_lock(&new->lock); in ipc_addid()
[all …]
Dmqueue.c1452 static int do_mq_getsetattr(int mqdes, struct mq_attr *new, struct mq_attr *old) in do_mq_getsetattr() argument
1458 if (new && (new->mq_flags & (~O_NONBLOCK))) in do_mq_getsetattr()
1479 if (new) { in do_mq_getsetattr()
1480 audit_mq_getsetattr(mqdes, new); in do_mq_getsetattr()
1482 if (new->mq_flags & O_NONBLOCK) in do_mq_getsetattr()
1502 struct mq_attr *new = NULL, *old = NULL; in SYSCALL_DEFINE3() local
1505 new = &mqstat; in SYSCALL_DEFINE3()
1506 if (copy_from_user(new, u_mqstat, sizeof(struct mq_attr))) in SYSCALL_DEFINE3()
1512 ret = do_mq_getsetattr(mqdes, new, old); in SYSCALL_DEFINE3()
1595 struct mq_attr *new = NULL, *old = NULL; in COMPAT_SYSCALL_DEFINE3() local
[all …]
Dsem.c1910 struct sem_undo *un, *new; in find_alloc_undo() local
1941 new = kvzalloc(sizeof(struct sem_undo) + sizeof(short)*nsems, in find_alloc_undo()
1943 if (!new) { in find_alloc_undo()
1954 kvfree(new); in find_alloc_undo()
1966 kvfree(new); in find_alloc_undo()
1970 new->semadj = (short *) &new[1]; in find_alloc_undo()
1971 new->ulp = ulp; in find_alloc_undo()
1972 new->semid = semid; in find_alloc_undo()
1974 list_add_rcu(&new->list_proc, &ulp->list_proc); in find_alloc_undo()
1976 list_add(&new->list_id, &sma->list_id); in find_alloc_undo()
[all …]
Dnamespace.c216 static int ipcns_install(struct nsset *nsset, struct ns_common *new) in ipcns_install() argument
219 struct ipc_namespace *ns = to_ipc_ns(new); in ipcns_install()
Dshm.c565 static int shm_set_policy(struct vm_area_struct *vma, struct mempolicy *new) in shm_set_policy() argument
572 err = sfd->vm_ops->set_policy(vma, new); in shm_set_policy()