| /xnu-8019.80.24/bsd/dev/arm/ |
| H A D | munge.c | 103 error = copyin(ss->sp + ARG_SP_BYTE_OFFSET, in marshal_no_pad() 225 return copyin(ss->sp + ARG_SP_BYTE_OFFSET, // l in munge_wwlll() 291 return copyin(ss->sp + ARG_SP_BYTE_OFFSET, // ll in munge_wlwwwll() 300 return copyin(ss->sp + ARG_SP_BYTE_OFFSET, // ll in munge_wlwwwll() 312 return copyin(ss->sp + ARG_SP_BYTE_OFFSET, in munge_wlwwwllw() 321 return copyin(ss->sp + ARG_SP_BYTE_OFFSET, // llw in munge_wlwwwllw() 342 return copyin(ss->sp + ARG_SP_BYTE_OFFSET, // wlw in munge_wlwwlwlw() 386 return copyin(ss->sp + ARG_SP_BYTE_OFFSET, // l in munge_wllll() 405 return copyin(ss->sp + ARG_SP_BYTE_OFFSET, // ll in munge_wllwwll() 513 return copyin(ss->sp + ARG_SP_BYTE_OFFSET, // w in munge_wwwwlw() [all …]
|
| /xnu-8019.80.24/bsd/libkern/ |
| H A D | copyio.h | 35 int copyin(const user_addr_t uaddr, void *kaddr, size_t len) OS_WARN_RESULT; 43 #define mach_copyin(uaddr, kaddr, len) (copyin(uaddr, kaddr, len) ? KERN_MEMORY_ERROR : KERN_SUCCES… 54 return copyin(uaddr, kaddr, len); in __copyin_chk() 65 #define copyin(uaddr, kaddr, len) __copyin_chk(uaddr, kaddr, len, __builtin_object_size(kaddr, 0)) macro
|
| /xnu-8019.80.24/bsd/kern/ |
| H A D | sys_coalition.c | 86 error = copyin(cidp, &cid, sizeof(cid)); in coalition_request_terminate_syscall() 150 error = copyin(cidp, &cid, sizeof(cid)); in coalition_reap_syscall() 251 error = copyin(buffer, name, MIN(bufsize, sizeof(name) - 1)); in coalition_info_set_name_internal() 273 error = copyin(buffer, &flags, MIN(bufsize, sizeof(flags))); in coalition_info_efficiency() 302 error = copyin(buffer, &limit, MIN(bufsize, sizeof(limit))); in coalition_ledger_logical_writes_limit() 325 error = copyin(cidp, &cid, sizeof(cid)); in coalition_info() 338 error = copyin(bufsizep, &size64, sizeof(size64)); in coalition_info() 342 error = copyin(bufsizep, &size32, sizeof(size32)); in coalition_info() 385 error = copyin(cidp, &cid, sizeof(cid)); in coalition_ledger() 398 error = copyin(bufsizep, &size64, sizeof(size64)); in coalition_ledger() [all …]
|
| H A D | sys_persona.c | 55 error = copyin(infop, &info_v, sizeof(info_v)); in kpersona_copyin() 65 error = copyin(infop, kinfo, sizeof(*kinfo)); in kpersona_copyin() 79 error = copyin(infop, &info_v, sizeof(info_v)); in kpersona_copyout() 217 error = copyin(idp, &persona_id, sizeof(persona_id)); in kpersona_dealloc_syscall() 272 error = copyin(idp, &persona_id, sizeof(persona_id)); in kpersona_getpath_syscall() 313 error = copyin(idp, &persona_id, sizeof(persona_id)); in kpersona_info_syscall() 371 error = copyin(idp, &pid, sizeof(pid)); in kpersona_pidinfo_syscall() 414 error = copyin(idlenp, &u_idlen, sizeof(u_idlen)); in kpersona_find_syscall()
|
| H A D | kern_guarded.c | 267 if ((error = copyin(uap->guard, in guarded_open_np() 320 if ((error = copyin(uap->guard, in guarded_open_dprotected_np() 393 if ((error = copyin(uap->guard, in guarded_kqueue_np() 419 if ((error = copyin(uap->guard, &uguard, sizeof(uguard))) != 0) { in guarded_close_np() 501 0 != (error = copyin(uap->guard, &oldg, sizeof(oldg)))) { in change_fdguard_np() 505 0 != (error = copyin(uap->nguard, &newg, sizeof(newg)))) { in change_fdguard_np() 509 0 != (error = copyin(uap->fdflagsp, &nfdflags, sizeof(nfdflags)))) { in change_fdguard_np() 682 if ((error = copyin(uap->guard, &uguard, sizeof(uguard))) != 0) { in guarded_write_np() 723 if ((error = copyin(uap->guard, &uguard, sizeof(uguard))) != 0) { in guarded_pwrite_np() 818 if ((error = copyin(uap->guard, &uguard, sizeof(uguard))) != 0) { in guarded_writev_np() [all …]
|
| H A D | sys_work_interval.c | 65 if ((error = copyin(uap->arg, &create_params, sizeof(create_params)))) { in work_interval_ctl() 160 if ((error = copyin(uap->arg, ¬ification, sizeof(notification)))) { in work_interval_ctl()
|
| H A D | kern_time.c | 197 error = copyin(uap->tv, &user_atv, sizeof(user_atv)); in settimeofday() 202 error = copyin(uap->tv, &user_atv, sizeof(user_atv)); in settimeofday() 210 if (uap->tzp && (error = copyin(uap->tzp, (caddr_t)&atz, sizeof(atz)))) { in settimeofday() 400 if ((error = copyin(itvp, (caddr_t)&user_itv, sizeof(user_itv)))) { in setitimer() 409 if ((error = copyin(itvp, (caddr_t)&user_itv, sizeof(user_itv)))) { in setitimer()
|
| H A D | sys_generic.c | 961 error = copyin(uap->data, datap, size); in ioctl() 1220 err = copyin(uap->tv, (caddr_t)&atv64, sizeof(atv64)); in select_nocancel() 1226 err = copyin(uap->tv, (caddr_t)&atv32, sizeof(atv32)); in select_nocancel() 1264 err = copyin(uap->ts, (caddr_t)&ts64, sizeof(ts64)); in pselect_nocancel() 1269 err = copyin(uap->ts, (caddr_t)&ts32, sizeof(ts32)); in pselect_nocancel() 1288 err = copyin(uap->mask, &newset, sizeof(sigset_t)); in pselect_nocancel() 1406 if (uap->name && (error = copyin(uap->name, \ in select_internal() 1950 error = copyin(uap->fds, fds, nfds * sizeof(struct pollfd)); in poll_nocancel() 2490 error = copyin(uap->timeoutp, &ts, sizeof(ts)); in gethostuuid() 2498 error = copyin(uap->timeoutp, &ts, sizeof(ts)); in gethostuuid() [all …]
|
| H A D | kern_aio.c | 499 result = copyin(uap->aiocbp, &aiocb64, sizeof(aiocb64)); in aio_cancel() 506 result = copyin(uap->aiocbp, &aiocb32, sizeof(aiocb32)); in aio_cancel() 1058 error = copyin(uap->timeoutp, &temp, sizeof(temp)); in aio_suspend_nocancel() 1065 error = copyin(uap->timeoutp, &temp, sizeof(temp)); in aio_suspend_nocancel() 1187 result = copyin(aiocblist, aiocbpp, in aio_copy_in_list() 1236 result = copyin(sigp, &sigevent64, sizeof(sigevent64)); in aio_copy_in_sigev() 1250 result = copyin(sigp, &sigevent32, sizeof(sigevent32)); in aio_copy_in_sigev() 1692 if (copyin(aiocbp, &aiocb64, sizeof(aiocb64)) != 0) { in aio_create_queue_entry() 1699 if (copyin(aiocbp, &aiocb32, sizeof(aiocb32)) != 0) { in aio_create_queue_entry()
|
| H A D | kern_ntptime.c | 308 error = copyin(uap->tp, &user_ntv, sizeof(user_ntv)); in ntp_adjtime() 320 error = copyin(uap->tp, &user_ntv, sizeof(user_ntv)); in ntp_adjtime() 727 error = copyin(uap->delta, &user_atv, sizeof(user_atv)); in adjtime() 732 error = copyin(uap->delta, &user_atv, sizeof(user_atv)); in adjtime()
|
| H A D | uipc_syscalls.c | 430 error = copyin(uap->anamelen, (caddr_t)&namelen, in accept_nocancel() 785 error = copyin(uap->endpoints, (caddr_t)&ep64, sizeof(ep64)); in connectx_nocancel() 796 error = copyin(uap->endpoints, (caddr_t)&ep32, sizeof(ep32)); in connectx_nocancel() 1445 error = copyin(uap->msg, msghdrp, size_of_msghdr); in sendmsg_nocancel() 1603 error = copyin(uap->msgp, umsgp, uap->cnt * size_of_msghdr); in sendmsg_x() 2045 error = copyin(uap->fromlenaddr, in recvfrom_nocancel() 2122 error = copyin(uap->msg, msghdrp, size_of_msghdr); in recvmsg_nocancel() 2285 error = copyin(uap->msgp, umsgp, uap->cnt * size_of_msghdr); in recvmsg_x() 2549 error = copyin(uap->avalsize, (caddr_t)&valsize, in getsockopt() 2616 error = copyin(uap->alen, (caddr_t)&len, sizeof(socklen_t)); in getsockname() [all …]
|
| H A D | kern_descrip.c | 2701 error = copyin(argp, &fopen, sizeof(fopen)); in sys_fcntl__OPENFROM() 2705 error = copyin(argp, &fopen32, sizeof(fopen32)); in sys_fcntl__OPENFROM() 3006 error = copyin(argp, (caddr_t) &fltimeout, sizeof(fltimeout)); in sys_fcntl_nocancel() 3013 error = copyin(argp, (caddr_t)&fl, sizeof(fl)); in sys_fcntl_nocancel() 3137 error = copyin(argp, (caddr_t)&fl, sizeof(fl)); in sys_fcntl_nocancel() 3225 error = copyin(argp, (caddr_t)&alloc_struct, sizeof(alloc_struct)); in sys_fcntl_nocancel() 3312 if ((error = copyin(argp, (caddr_t)&args, sizeof(args)))) { in sys_fcntl_nocancel() 3354 if ((error = copyin(argp, (caddr_t)&args, sizeof(args)))) { in sys_fcntl_nocancel() 3379 if ((error = copyin(argp, (caddr_t)&args, sizeof(args)))) { in sys_fcntl_nocancel() 3431 error = copyin(argp, (caddr_t)&offset, sizeof(off_t)); in sys_fcntl_nocancel() [all …]
|
| H A D | stackshot.c | 128 error = copyin(uap->stackshot_config, &config, sizeof(stackshot_config_t)); in stack_snapshot_with_config()
|
| /xnu-8019.80.24/security/ |
| H A D | mac_base.c | 1170 error = copyin(uap->mac_p, &mac64, sizeof(mac64)); in __mac_get_pid() 1175 error = copyin(uap->mac_p, &mac32, sizeof(mac32)); in __mac_get_pid() 1228 error = copyin(uap->mac_p, &mac64, sizeof(mac64)); in __mac_get_proc() 1233 error = copyin(uap->mac_p, &mac32, sizeof(mac32)); in __mac_get_proc() 1280 error = copyin(uap->mac_p, &mac64, sizeof(mac64)); in __mac_set_proc() 1285 error = copyin(uap->mac_p, &mac32, sizeof(mac32)); in __mac_set_proc() 1344 error = copyin(uap->mac_p, &mac64, sizeof(mac64)); in __mac_get_fd() 1349 error = copyin(uap->mac_p, &mac32, sizeof(mac32)); in __mac_get_fd() 1444 error = copyin(mac_p, &mac64, sizeof(mac64)); in mac_get_filelink() 1449 error = copyin(mac_p, &mac32, sizeof(mac32)); in mac_get_filelink() [all …]
|
| /xnu-8019.80.24/bsd/skywalk/nexus/ |
| H A D | nexus_syscalls.c | 86 err = copyin(uap->init, (caddr_t)&init, sizeof(init)); in __nexus_open() 177 err = copyin(uap->reg, (caddr_t)®, sizeof(reg)); in __nexus_register() 251 err = copyin(uap->prov_uuid, (caddr_t)&nxprov_uuid, sizeof(uuid_t)); in __nexus_deregister() 300 err = copyin(uap->prov_uuid, (caddr_t)&nxprov_uuid, sizeof(uuid_t)); in __nexus_create() 364 err = copyin(uap->nx_uuid, (caddr_t)&nx_uuid, sizeof(uuid_t)); in __nexus_destroy() 418 err = copyin(uap->aoptlen, &optlen, sizeof(optlen)); in __nexus_get_opt()
|
| /xnu-8019.80.24/bsd/dev/dtrace/ |
| H A D | dtrace_glue.c | 1023 if (copyin((const user_addr_t)src, (char *)dst, (vm_size_t)len)) { in dtrace_copyin() 1133 if (copyin((const user_addr_t)uaddr, (char *)&ret, sizeof(ret))) { in dtrace_fuword8() 1151 if (copyin((const user_addr_t)uaddr, (char *)&ret, sizeof(ret))) { in dtrace_fuword16() 1169 if (copyin((const user_addr_t)uaddr, (char *)&ret, sizeof(ret))) { in dtrace_fuword32() 1187 if (copyin((const user_addr_t)uaddr, (char *)&ret, sizeof(ret))) { in dtrace_fuword64() 1206 if (copyin((const user_addr_t)uaddr, (char *)value, sizeof(uint8_t)) != 0) { in fuword8() 1216 if (copyin((const user_addr_t)uaddr, (char *)value, sizeof(uint16_t)) != 0) { in fuword16() 1226 if (copyin((const user_addr_t)uaddr, (char *)value, sizeof(uint32_t)) != 0) { in fuword32() 1236 if (copyin((const user_addr_t)uaddr, (char *)value, sizeof(uint64_t)) != 0) { in fuword64() 1246 if (copyin((const user_addr_t)uaddr, (char *)value, sizeof(uint32_t))) { in fuword32_noerr() [all …]
|
| /xnu-8019.80.24/osfmk/i386/ |
| H A D | ucode.c | 77 error = copyin((user_addr_t)inaddr, (void *)&update_header, sizeof(update_header)); in copyin_update() 105 error = copyin((user_addr_t)inaddr, (void*)update, size); in copyin_update()
|
| /xnu-8019.80.24/bsd/tests/ |
| H A D | copyio_tests.c | 119 return copyin((uintptr_t)data->kern_addr, in_buf, copyio_test_buf_size); in copyin_from_kernel() 133 int err = copyin(data->user_addr, in_buf, copyio_test_buf_size); in copyin_test() 138 err = copyin(data->unmapped_addr, NULL, 0); in copyin_test() 141 err = copyin(data->unmapped_addr, in_buf, copyio_test_buf_size); in copyin_test() 143 err = copyin(data->unmapped_addr - PAGE_SIZE, in_buf, PAGE_SIZE * 2); in copyin_test() 145 err = copyin(data->user_lastpage_addr, in_buf, PAGE_SIZE * 2); in copyin_test() 157 err = copyin(data->user_addr, in_buf, copyio_test_buf_size); in copyin_test()
|
| /xnu-8019.80.24/osfmk/kperf/ |
| H A D | thread_samplers.c | 313 if ((error = copyin((user_addr_t)user_dq_key_addr, &user_dq_addr, in kperf_thread_dispatch_sample() 331 if ((error = copyin((user_addr_t)user_dq_serialno_addr, in kperf_thread_dispatch_sample() 353 if ((error = copyin((user_addr_t)user_dqlbl_ptr_addr, &user_dqlbl_addr, in kperf_thread_dispatch_sample()
|
| H A D | kdebug_trigger.c | 159 if ((err = copyin(user_filter, (char *)kperf_kdebug_filter, in kperf_kdebug_set_filter()
|
| H A D | kperfbsd.c | 189 if ((error = copyin(req->newptr, inputs, sizeof(inputs)))) { in kperf_sysctl_get_set_unsigned_uint32() 225 if ((error = copyin(req->newptr, inputs, sizeof(inputs)))) { in sysctl_timer_period() 256 if ((error = copyin(req->newptr, inputs, sizeof(inputs)))) { in sysctl_action_filter()
|
| /xnu-8019.80.24/bsd/dev/ |
| H A D | monotonic.c | 181 error = copyin(uptr, &ctl, sizeof(ctl.in)); in mt_ctl_add() 209 error = copyin(uptr, &ctl, sizeof(ctl.in)); in mt_ctl_counts() 244 error = copyin(uptr, &ctl, sizeof(ctl)); in mt_ctl_enable()
|
| /xnu-8019.80.24/bsd/man/man9/ |
| H A D | Makefile | 11 copyin.9 \
|
| /xnu-8019.80.24/bsd/dev/arm64/ |
| H A D | dtrace_subr_arm.c | 66 if (copyin((user_addr_t)saved_state64(regs)->pc, &pc, sizeof(uint32_t))) { in dtrace_user_probe()
|
| /xnu-8019.80.24/osfmk/arm64/ |
| H A D | copyio.c | 38 #undef copyin 221 copyin(const user_addr_t user_addr, void *kernel_addr, vm_size_t nbytes) in copyin() function
|