Home
last modified time | relevance | path

Searched refs:err (Results 1 – 9 of 9) sorted by relevance

/ipc/
Dshm.c187 goto err; in shm_lock()
203 err: in shm_lock()
262 int err = __shm_open(vma); in shm_open() local
267 WARN_ON_ONCE(err); in shm_open()
464 int err = 0; in shm_set_policy() local
467 err = sfd->vm_ops->set_policy(vma, new); in shm_set_policy()
468 return err; in shm_set_policy()
896 int err; in shmctl_down() local
904 err = PTR_ERR(ipcp); in shmctl_down()
910 err = security_shm_shmctl(&shp->shm_perm, cmd); in shmctl_down()
[all …]
Dmsg.c384 int err; in msgctl_down() local
392 err = PTR_ERR(ipcp); in msgctl_down()
398 err = security_msg_queue_msgctl(&msq->q_perm, cmd); in msgctl_down()
399 if (err) in msgctl_down()
414 err = -EPERM; in msgctl_down()
419 err = ipc_update_perm(&msqid64->msg_perm, ipcp); in msgctl_down()
420 if (err) in msgctl_down()
442 err = -EINVAL; in msgctl_down()
452 return err; in msgctl_down()
458 int err; in msgctl_info() local
[all …]
Dutil.c281 int idx, err; in ipc_addid() local
308 err = rhashtable_insert_fast(&ids->key_ht, &new->khtnode, in ipc_addid()
310 if (err < 0) { in ipc_addid()
312 idx = err; in ipc_addid()
341 int err; in ipcget_new() local
344 err = ops->getnew(ns, params); in ipcget_new()
346 return err; in ipcget_new()
369 int err; in ipc_check_perms() local
372 err = -EACCES; in ipc_check_perms()
374 err = ops->associate(ipcp, params->flg); in ipc_check_perms()
[all …]
Dsem.c1220 int err; in semctl_stat() local
1228 err = PTR_ERR(sma); in semctl_stat()
1234 err = PTR_ERR(sma); in semctl_stat()
1243 err = -EACCES; in semctl_stat()
1248 err = security_sem_semctl(&sma->sem_perm, cmd); in semctl_stat()
1249 if (err) in semctl_stat()
1256 err = -EIDRM; in semctl_stat()
1275 err = 0; in semctl_stat()
1281 err = sma->sem_perm.id; in semctl_stat()
1286 return err; in semctl_stat()
[all …]
Dnamespace.c37 int err; in create_ipc_ns() local
39 err = -ENOSPC; in create_ipc_ns()
44 err = -ENOMEM; in create_ipc_ns()
49 err = ns_alloc_inum(&ns->ns); in create_ipc_ns()
50 if (err) in create_ipc_ns()
58 err = mq_init_ns(ns); in create_ipc_ns()
59 if (err) in create_ipc_ns()
76 return ERR_PTR(err); in create_ipc_ns()
Dmsgutil.c88 int err = -EFAULT; in load_msg() local
107 err = security_msg_msg_alloc(msg); in load_msg()
108 if (err) in load_msg()
115 return ERR_PTR(err); in load_msg()
Dsyscall.c183 int err; in compat_ksys_ipc() local
188 err = do_shmat(first, compat_ptr(ptr), second, &raddr, in compat_ksys_ipc()
190 if (err < 0) in compat_ksys_ipc()
191 return err; in compat_ksys_ipc()
Dipc_sysctl.c52 int err = proc_ipc_dointvec_minmax(table, write, buffer, lenp, ppos); in proc_ipc_dointvec_minmax_orphans() local
54 if (err < 0) in proc_ipc_dointvec_minmax_orphans()
55 return err; in proc_ipc_dointvec_minmax_orphans()
58 return err; in proc_ipc_dointvec_minmax_orphans()
Dmqueue.c241 goto err; in mqueue_get_inode()
338 err: in mqueue_get_inode()
859 int err; in SYSCALL_DEFINE1() local
871 err = mnt_want_write(mnt); in SYSCALL_DEFINE1()
872 if (err) in SYSCALL_DEFINE1()
878 err = PTR_ERR(dentry); in SYSCALL_DEFINE1()
884 err = -ENOENT; in SYSCALL_DEFINE1()
887 err = vfs_unlink2(mnt, d_inode(dentry->d_parent), dentry, NULL); in SYSCALL_DEFINE1()
899 return err; in SYSCALL_DEFINE1()