Home
last modified time | relevance | path

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

/ipc/
Dutil.c201 static inline int ipc_idr_alloc(struct ipc_ids *ids, struct kern_ipc_perm *new) in ipc_idr_alloc() argument
245 new->seq = ids->seq; in ipc_idr_alloc()
250 idr_replace(&ids->ipcs_idr, new, idx); in ipc_idr_alloc()
253 new->seq = ipcid_to_seqx(next_id); in ipc_idr_alloc()
254 idx = idr_alloc(&ids->ipcs_idr, new, ipcid_to_idx(next_id), in ipc_idr_alloc()
258 new->id = (new->seq << ipcmni_seq_shift()) + idx; in ipc_idr_alloc()
277 int ipc_addid(struct ipc_ids *ids, struct kern_ipc_perm *new, int limit) in ipc_addid() argument
284 refcount_set(&new->refcount, 1); in ipc_addid()
294 spin_lock_init(&new->lock); in ipc_addid()
296 spin_lock(&new->lock); in ipc_addid()
[all …]
Dmqueue.c1350 static int do_mq_getsetattr(int mqdes, struct mq_attr *new, struct mq_attr *old) in do_mq_getsetattr() argument
1356 if (new && (new->mq_flags & (~O_NONBLOCK))) in do_mq_getsetattr()
1377 if (new) { in do_mq_getsetattr()
1378 audit_mq_getsetattr(mqdes, new); in do_mq_getsetattr()
1380 if (new->mq_flags & O_NONBLOCK) in do_mq_getsetattr()
1400 struct mq_attr *new = NULL, *old = NULL; in SYSCALL_DEFINE3() local
1403 new = &mqstat; in SYSCALL_DEFINE3()
1404 if (copy_from_user(new, u_mqstat, sizeof(struct mq_attr))) in SYSCALL_DEFINE3()
1410 ret = do_mq_getsetattr(mqdes, new, old); in SYSCALL_DEFINE3()
1493 struct mq_attr *new = NULL, *old = NULL; in COMPAT_SYSCALL_DEFINE3() local
[all …]
Dsem.c1892 struct sem_undo *un, *new; in find_alloc_undo() local
1923 new = kzalloc(sizeof(struct sem_undo) + sizeof(short)*nsems, GFP_KERNEL); in find_alloc_undo()
1924 if (!new) { in find_alloc_undo()
1935 kfree(new); in find_alloc_undo()
1946 kfree(new); in find_alloc_undo()
1950 new->semadj = (short *) &new[1]; in find_alloc_undo()
1951 new->ulp = ulp; in find_alloc_undo()
1952 new->semid = semid; in find_alloc_undo()
1954 list_add_rcu(&new->list_proc, &ulp->list_proc); in find_alloc_undo()
1956 list_add(&new->list_id, &sma->list_id); in find_alloc_undo()
[all …]
Dnamespace.c180 static int ipcns_install(struct nsproxy *nsproxy, struct ns_common *new) in ipcns_install() argument
182 struct ipc_namespace *ns = to_ipc_ns(new); in ipcns_install()
Dshm.c460 static int shm_set_policy(struct vm_area_struct *vma, struct mempolicy *new) in shm_set_policy() argument
467 err = sfd->vm_ops->set_policy(vma, new); in shm_set_policy()