Lines Matching refs:up
148 struct compat_ipc_perm __user *up) in __get_compat_ipc_perm() argument
152 err = __get_user(p->uid, &up->uid); in __get_compat_ipc_perm()
153 err |= __get_user(p->gid, &up->gid); in __get_compat_ipc_perm()
154 err |= __get_user(p->mode, &up->mode); in __get_compat_ipc_perm()
203 struct compat_semid_ds __user *up) in get_compat_semid_ds() argument
205 if (!access_ok(VERIFY_READ, up, sizeof(*up))) in get_compat_semid_ds()
207 return __get_compat_ipc_perm(&s->sem_perm, &up->sem_perm); in get_compat_semid_ds()
225 struct compat_semid_ds __user *up) in put_compat_semid_ds() argument
229 if (!access_ok(VERIFY_WRITE, up, sizeof(*up))) in put_compat_semid_ds()
231 err = __put_compat_ipc_perm(&s->sem_perm, &up->sem_perm); in put_compat_semid_ds()
232 err |= __put_user(s->sem_otime, &up->sem_otime); in put_compat_semid_ds()
233 err |= __put_user(s->sem_ctime, &up->sem_ctime); in put_compat_semid_ds()
234 err |= __put_user(s->sem_nsems, &up->sem_nsems); in put_compat_semid_ds()
355 struct compat_msgbuf __user *up = compat_ptr(ptr); in COMPAT_SYSCALL_DEFINE6() local
361 if (get_user(type, &up->mtype)) in COMPAT_SYSCALL_DEFINE6()
364 return do_msgsnd(first, type, up->mtext, second, third); in COMPAT_SYSCALL_DEFINE6()
421 struct compat_msgbuf __user *up = compat_ptr(msgp); in COMPAT_SYSCALL_DEFINE4() local
424 if (get_user(mtype, &up->mtype)) in COMPAT_SYSCALL_DEFINE4()
426 return do_msgsnd(msqid, mtype, up->mtext, (ssize_t)msgsz, msgflg); in COMPAT_SYSCALL_DEFINE4()
449 struct compat_msqid_ds __user *up) in get_compat_msqid() argument
453 if (!access_ok(VERIFY_READ, up, sizeof(*up))) in get_compat_msqid()
455 err = __get_compat_ipc_perm(&m->msg_perm, &up->msg_perm); in get_compat_msqid()
456 err |= __get_user(m->msg_qbytes, &up->msg_qbytes); in get_compat_msqid()
480 struct compat_msqid_ds __user *up) in put_compat_msqid_ds() argument
484 if (!access_ok(VERIFY_WRITE, up, sizeof(*up))) in put_compat_msqid_ds()
486 err = __put_compat_ipc_perm(&m->msg_perm, &up->msg_perm); in put_compat_msqid_ds()
487 err |= __put_user(m->msg_stime, &up->msg_stime); in put_compat_msqid_ds()
488 err |= __put_user(m->msg_rtime, &up->msg_rtime); in put_compat_msqid_ds()
489 err |= __put_user(m->msg_ctime, &up->msg_ctime); in put_compat_msqid_ds()
490 err |= __put_user(m->msg_cbytes, &up->msg_cbytes); in put_compat_msqid_ds()
491 err |= __put_user(m->msg_qnum, &up->msg_qnum); in put_compat_msqid_ds()
492 err |= __put_user(m->msg_qbytes, &up->msg_qbytes); in put_compat_msqid_ds()
493 err |= __put_user(m->msg_lspid, &up->msg_lspid); in put_compat_msqid_ds()
494 err |= __put_user(m->msg_lrpid, &up->msg_lrpid); in put_compat_msqid_ds()
573 struct compat_shmid_ds __user *up) in get_compat_shmid_ds() argument
575 if (!access_ok(VERIFY_READ, up, sizeof(*up))) in get_compat_shmid_ds()
577 return __get_compat_ipc_perm(&s->shm_perm, &up->shm_perm); in get_compat_shmid_ds()
599 struct compat_shmid_ds __user *up) in put_compat_shmid_ds() argument
603 if (!access_ok(VERIFY_WRITE, up, sizeof(*up))) in put_compat_shmid_ds()
605 err = __put_compat_ipc_perm(&s->shm_perm, &up->shm_perm); in put_compat_shmid_ds()
606 err |= __put_user(s->shm_atime, &up->shm_atime); in put_compat_shmid_ds()
607 err |= __put_user(s->shm_dtime, &up->shm_dtime); in put_compat_shmid_ds()
608 err |= __put_user(s->shm_ctime, &up->shm_ctime); in put_compat_shmid_ds()
609 err |= __put_user(s->shm_segsz, &up->shm_segsz); in put_compat_shmid_ds()
610 err |= __put_user(s->shm_nattch, &up->shm_nattch); in put_compat_shmid_ds()
611 err |= __put_user(s->shm_cpid, &up->shm_cpid); in put_compat_shmid_ds()
612 err |= __put_user(s->shm_lpid, &up->shm_lpid); in put_compat_shmid_ds()
634 struct shminfo __user *up) in put_compat_shminfo() argument
638 if (!access_ok(VERIFY_WRITE, up, sizeof(*up))) in put_compat_shminfo()
642 err = __put_user(smi->shmmax, &up->shmmax); in put_compat_shminfo()
643 err |= __put_user(smi->shmmin, &up->shmmin); in put_compat_shminfo()
644 err |= __put_user(smi->shmmni, &up->shmmni); in put_compat_shminfo()
645 err |= __put_user(smi->shmseg, &up->shmseg); in put_compat_shminfo()
646 err |= __put_user(smi->shmall, &up->shmall); in put_compat_shminfo()