Home
last modified time | relevance | path

Searched refs:copyout (Results 1 – 25 of 117) sorted by relevance

12345

/xnu-8020.140.41/bsd/tests/
H A Dbsd_tests.c156 kret = copyout(&t->xt_config, (user_addr_t)outaddr, sizeof(uint16_t)); in xnupost_copyout_test()
162 kret = copyout(&t->xt_test_num, (user_addr_t)outaddr, sizeof(uint16_t)); in xnupost_copyout_test()
168 kret = copyout(&t->xt_retval, (user_addr_t)outaddr, sizeof(uint32_t)); in xnupost_copyout_test()
174 kret = copyout(&t->xt_expected_retval, (user_addr_t)outaddr, sizeof(uint32_t)); in xnupost_copyout_test()
180 kret = copyout(&t->xt_begin_time, (user_addr_t)outaddr, sizeof(uint64_t)); in xnupost_copyout_test()
186 kret = copyout(&t->xt_end_time, (user_addr_t)outaddr, sizeof(uint64_t)); in xnupost_copyout_test()
193 kret = copyout(t->xt_name, (user_addr_t)outaddr, namelen); in xnupost_copyout_test()
246 kret = copyout(&timebase, (user_addr_t)user_addr, sizeof(timebase)); in xnupost_export_testdata()
253 kret = copyout(&version[0], (user_addr_t)user_addr, length_to_copy); in xnupost_export_testdata()
259 kret = copyout(PE_boot_args(), (user_addr_t)user_addr, length_to_copy); in xnupost_export_testdata()
H A Dcopyio_tests.c166 return copyout(out_buf, (uintptr_t)data->kern_addr, copyio_test_buf_size); in copyout_to_kernel()
179 int err = copyout(out_buf, data->user_addr, copyio_test_buf_size); in copyout_test()
185 err = copyout(NULL, data->unmapped_addr, 0); in copyout_test()
188 err = copyout(out_buf, data->unmapped_addr, copyio_test_buf_size); in copyout_test()
190 err = copyout(out_buf, data->unmapped_addr - PAGE_SIZE, PAGE_SIZE * 2); in copyout_test()
192 err = copyout(out_buf, data->user_lastpage_addr, PAGE_SIZE * 2); in copyout_test()
205 err = copyout(out_buf, data->user_addr, copyio_test_buf_size); in copyout_test()
/xnu-8020.140.41/bsd/libkern/
H A Dcopyio.h36 int copyout(const void *kaddr, user_addr_t udaddr, size_t len);
44 #define mach_copyout(kaddr, uaddr, len) (copyout(kaddr, uaddr, len) ? KERN_MEMORY_ERROR : KERN_SUCC…
63 return copyout(kaddr, uaddr, len); in __copyout_chk()
66 #define copyout(kaddr, uaddr, len) __copyout_chk(kaddr, uaddr, len, __builtin_object_size(kaddr, 0)) macro
/xnu-8020.140.41/bsd/kern/
H A Dproc_info.c462 error = copyout((caddr_t)ptr, buffer, n * sizeof(int)); in proc_listpids()
531 error = copyout(kbuf, buffer, count * sizeof(struct proc_fdinfo)); in proc_pidfdlist()
635 error = copyout(kbuf, buffer, numfileports * sizeof(*pfi)); in proc_pidfileportlist()
1051 error = copyout(kbuf, buffer, ret); in proc_pidlistthreads()
1071 error = copyout(&preginfo, buffer, sizeof(struct proc_regioninfo)); in proc_pidregioninfo()
1107 error = copyout(&preginfo, buffer, sizeof(struct proc_regionwithpathinfo)); in proc_pidregionpathinfo()
1147 error = copyout(&preginfo, buffer, sizeof(struct proc_regionwithpathinfo)); in proc_pidregionpathinfo2()
1184 error = copyout(&path, buffer, sizeof(struct proc_regionpath)); in proc_pidregionpath()
1250 error = copyout(&preginfo, buffer, sizeof(struct proc_regionwithpathinfo)); in proc_pidregionpathinfo3()
1315 error = copyout(&pvninfo, buffer, sizeof(struct proc_vnodepathinfo)); in proc_pidvnodepathinfo()
[all …]
H A Dkern_sfi.c111 error = copyout(&out_time, uap->out_time, sizeof(out_time)); in sfi_ctl()
149 error = copyout(&out_time, uap->out_time, sizeof(out_time)); in sfi_ctl()
254 error = copyout(&out_flags, uap->out_sfi_flags, sizeof(out_flags)); in sfi_pidctl()
H A Dsys_persona.c90 error = copyout(kinfo, infop, sizeof(*kinfo)); in kpersona_copyout()
168 error = copyout(&persona->pna_id, idp, sizeof(persona->pna_id)); in kpersona_alloc_syscall()
253 error = copyout(&persona->pna_id, idp, sizeof(persona->pna_id)); in kpersona_get_syscall()
449 error = copyout(&persona[i]->pna_id, in kpersona_find_syscall()
465 (void)copyout(&k_idlen, idlenp, sizeof(u_idlen)); in kpersona_find_syscall()
H A Dkern_time.c138 error = copyout(&user_atv, uap->tp, sizeof(user_atv)); in gettimeofday()
143 error = copyout(&user_atv, uap->tp, sizeof(user_atv)); in gettimeofday()
155 error = copyout((caddr_t)&ltz, CAST_USER_ADDR_T(uap->tzp), sizeof(tz)); in gettimeofday()
159 error = copyout(&mach_time, uap->mach_absolute_time, sizeof(mach_time)); in gettimeofday()
365 return copyout((caddr_t)&user_itv, uap->itv, sizeof(user_itv)); in getitimer()
373 return copyout((caddr_t)&user_itv, uap->itv, sizeof(user_itv)); in getitimer()
H A Dkern_ntptime.c276 error = copyout(&user_ntv, uap->ntvp, sizeof(user_ntv)); in ntp_gettime()
285 error = copyout(&user_ntv, uap->ntvp, sizeof(user_ntv)); in ntp_gettime()
478 error = copyout(&user_ntv, uap->tp, sizeof(user_ntv)); in ntp_adjtime()
507 error = copyout(&user_ntv, uap->tp, sizeof(user_ntv)); in ntp_adjtime()
751 error = copyout(&user_atv, uap->olddelta, sizeof(user_atv)); in adjtime()
756 error = copyout(&user_atv, uap->olddelta, sizeof(user_atv)); in adjtime()
H A Dsys_work_interval.c102 if ((error = copyout(&create_params, uap->arg, sizeof(create_params)))) { in work_interval_ctl()
126 if ((error = copyout(&create_params, uap->arg, sizeof(create_params)))) { in work_interval_ctl()
H A Dsysv_msg.c555 eval = copyout(&msqid_ds64, uap->buf, sizeof(msqid_ds64)); in msgctl()
559 eval = copyout(&msqid_ds32, uap->buf, sizeof(msqid_ds32)); in msgctl()
1409 eval = copyout(&msgtype, user_msgp, sizeof(msgtype)); in msgrcv_nocancel()
1415 eval = copyout(&msg_type32, user_msgp, sizeof(msg_type32)); in msgrcv_nocancel()
1451 eval = copyout(&msgpool[next * msginfo.msgssz], in msgrcv_nocancel()
1532 error = copyout(&msginfo, ipcs.u64.ipcs_data, ipcs.u64.ipcs_datalen); in IPCS_msg_sysctl()
1578 error = copyout(msqid_dsp, ipcs.u64.ipcs_data, ipcs.u64.ipcs_datalen); in IPCS_msg_sysctl()
H A Duipc_syscalls.c620 error = copyout(sa, uap->name, namelen); in accept_nocancel()
626 error = copyout((caddr_t)&namelen, uap->anamelen, in accept_nocancel()
903 error1 = copyout(&bytes_written, uap->len, sizeof(uap->len)); in connectx_nocancel()
911 error1 = copyout(&cid, uap->connid, sizeof(cid)); in connectx_nocancel()
1180 if ((error = copyout(sv, uap->rsv, 2 * sizeof(int))) != 0) { in socketpair()
1762 error = copyout(fromsa, name, (unsigned)len); in copyout_sa()
1835 error = copyout(tmp_buffer, ctlbuf, tocopy); in copyout_control()
1858 error = copyout((caddr_t) cp, ctlbuf, tocopy); in copyout_control()
1993 (error = copyout((caddr_t)&mp->msg_namelen, namelenp, in recvit()
2212 error = copyout(msghdrp, uap->msg, size_of_msghdr); in recvmsg_nocancel()
[all …]
/xnu-8020.140.41/bsd/dev/
H A Ddev_perfmon.c223 ret = copyout(source->ps_register_names, uptr, names_size); in perfmon_dev_ioctl()
232 ret = copyout(sample_buf, uptr, sample_size); in perfmon_dev_ioctl()
241 ret = copyout(attrs_buf, uptr, attrs_size); in perfmon_dev_ioctl()
287 ret = copyout(kspec->ps_events, (user_addr_t)uspec->ps_events, in perfmon_dev_ioctl()
290 ret = copyout(kspec->ps_attrs, (user_addr_t)uspec->ps_attrs, in perfmon_dev_ioctl()
H A Dmonotonic.c196 error = copyout(&ctl, uptr, sizeof(ctl.out)); in mt_ctl_add()
230 error = copyout(&counts, uptr, sizeof(counts)); in mt_ctl_counts()
299 error = copyout(&info, uptr, sizeof(info)); in mt_cdev_ioctl()
329 return copyout(&counts, uap->buf, MIN(sizeof(counts), uap->nbytes)); in thread_selfcounts()
427 return copyout(counts, req->oldptr, MIN(req->oldlen, sizeof(counts)));
/xnu-8020.140.41/osfmk/i386/
H A DDiagnostics.c165 (void) copyout((char *) &real_ncpus, data, sizeof(real_ncpus)); /* Copy out number of in diagCall64()
178 (void) copyout((char *) &durNap, curpos, 8); /* Copy out the time in diagCall64()
180 …(void) copyout((char *) &cpu_data_ptr[i]->cpu_hwIntCnt, curpos + 8, 256 * sizeof(uint32_t)); /*… in diagCall64()
267 copyout(&pkes, regs->rsi, sizeof(pkes)); in diagCall64()
297 copyout(&cest, curpos, sizeof(cest)); in diagCall64()
/xnu-8020.140.41/bsd/nfs/
H A Dnfs_syscalls.c659 error = copyout((caddr_t)&nfh, uap->fhp, sizeof(fhandle_t)); in getfh()
1604 error = copyout(&stat_desc, oldp, sizeof(struct nfs_export_stat_desc)); in nfssvc_exportstats()
1608 error = copyout(&stat_desc_size, newlenp, sizeof(stat_desc_size)); in nfssvc_exportstats()
1631 error = copyout(&totlen, newlenp, sizeof(totlen)); in nfssvc_exportstats()
1641 (void)copyout(&totlen, newlenp, sizeof(totlen)); in nfssvc_exportstats()
1647 error = copyout(&totlen, newlenp, sizeof(totlen)); in nfssvc_exportstats()
1656 error = copyout(&stat_desc, oldp, sizeof(struct nfs_export_stat_desc)); in nfssvc_exportstats()
1667 error = copyout(&stat_desc, oldp, sizeof(struct nfs_export_stat_desc)); in nfssvc_exportstats()
1681 error = copyout(&stat_desc, oldp + pos, sizeof(struct nfs_export_stat_desc)); in nfssvc_exportstats()
1709 error = copyout(&statrec, oldp + pos, sizeof(statrec)); in nfssvc_exportstats()
[all …]
/xnu-8020.140.41/bsd/vm/
H A Dvm_unix.c572 return copyout((void *)&(character), addr, sizeof(char)) == 0 ? 0 : -1; in subyte()
583 return copyout((void *)&(character), addr, sizeof(char)) == 0 ? 0 : -1; in suibyte()
613 return copyout((void *) &word, addr, sizeof(int)) == 0 ? 0 : -1; in suword()
634 return copyout((void *) &word, addr, sizeof(int)) == 0 ? 0 : -1; in suiword()
656 return copyout((void *)&word, addr, sizeof(word)) == 0 ? 0 : -1; in sulong()
681 return copyout((void *)&uword, addr, sizeof(uword)) == 0 ? 0 : -1; in suulong()
759 (void) copyout((char *) &pid, pid_addr, sizeof(int)); in pid_for_task()
901 (void) copyout((char *)&tret, task_addr, sizeof(mach_port_name_t)); in task_for_pid()
908 (void) copyout((char *)&tret, task_addr, sizeof(mach_port_name_t)); in task_for_pid()
1011 (void) copyout((char *) &tret, task_addr, sizeof(mach_port_name_t)); in task_for_pid()
[all …]
/xnu-8020.140.41/bsd/dev/i386/
H A Dunix_signal.c353 if (copyout((caddr_t)&uctx64, ua_uctxp, sizeof(uctx64))) { in sendsig()
357 if (copyout((caddr_t)&mctx_store, ua_mctxp, thread_state64[sig_xstate].mcontext_size)) { in sendsig()
490 if (copyout((caddr_t)&frame32, ua_fp, sizeof(frame32))) { in sendsig()
513 if (copyout((caddr_t)&uctx32, ua_uctxp, sizeof(uctx32))) { in sendsig()
517 if (copyout((caddr_t)&mctx_store, ua_mctxp, thread_state32[sig_xstate].mcontext_size)) { in sendsig()
666 if (copyout((caddr_t)&sinfo64_user64, ua_sip, sizeof(sinfo64_user64))) { in sendsig()
709 if (copyout((caddr_t)&sinfo32, ua_sip, sizeof(sinfo32))) { in sendsig()
H A Dstubs.c71 if (copyout(from, to, len)) { in copyoutstr()
/xnu-8020.140.41/bsd/skywalk/nexus/
H A Dnexus_syscalls.c119 err = copyout(&init, uap->init, sizeof(init)); in __nexus_open()
211 err = copyout(&nxprov->nxprov_uuid, uap->prov_uuid, sizeof(uuid_t)); in __nexus_register()
328 err = copyout(&nx->nx_uuid, uap->nx_uuid, sizeof(uuid_t)); in __nexus_create()
440 err = copyout(&optlen, uap->aoptlen, sizeof(optlen)); in __nexus_get_opt()
/xnu-8020.140.41/bsd/man/man9/
H A DMakefile18 copyout.9 \
/xnu-8020.140.41/bsd/pgo/
H A Dprofile_runtime.c276 err = copyout(buffer, uap->buffer, size); in grab_pgo_data()
324 err = copyout(buffer, uap->buffer, size); in grab_pgo_data()
/xnu-8020.140.41/bsd/vfs/
H A Dvfs_io_compression_stats.c522 …uint32_t error = copyout(&iocs_sbe_next, (user_addr_t)((unsigned char *)req->oldptr + current_offs… in vnode_iocs_callback()
634 error = copyout((void *)((uintptr_t)iocs_store_buffer.buffer + iocs_store_buffer.marked_point),
643 error = copyout((void *)((uintptr_t)iocs_store_buffer.buffer + iocs_store_buffer.marked_point),
652 error = copyout(iocs_store_buffer.buffer,
/xnu-8020.140.41/bsd/dev/arm/
H A Dstubs.c51 if (copyout(from, to, len)) { in copyoutstr()
/xnu-8020.140.41/osfmk/arm64/
H A Dcopyio.c39 #undef copyout
351 copyout(const void *kernel_addr, user_addr_t user_addr, vm_size_t nbytes) in copyout() function
/xnu-8020.140.41/bsd/dev/dtrace/
H A Ddtrace_glue.c1016 if (copyout((const void *)src, dst, (vm_size_t)len)) { in dtrace_copyout()
1063 if (copyout(kaddr, uaddr, maxsize) != 0) { in dtrace_buffer_copyout()
1072 if (copyout(kaddr, uaddr, nbytes) != 0) { in dtrace_buffer_copyout()
1216 if (copyout((const void *)&value, addr, sizeof(value)) != 0) { in suword64()
1226 if (copyout((const void *)&value, addr, sizeof(value)) != 0) { in suword32()

12345