Home
last modified time | relevance | path

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

12345

/xnu-12377.61.12/bsd/tests/
H A Dbsd_tests.c169 kret = copyout(&t->xt_config, (user_addr_t)outaddr, sizeof(uint16_t)); in xnupost_copyout_test()
175 kret = copyout(&t->xt_test_num, (user_addr_t)outaddr, sizeof(uint16_t)); in xnupost_copyout_test()
181 kret = copyout(&t->xt_retval, (user_addr_t)outaddr, sizeof(uint32_t)); in xnupost_copyout_test()
187 kret = copyout(&t->xt_expected_retval, (user_addr_t)outaddr, sizeof(uint32_t)); in xnupost_copyout_test()
193 kret = copyout(&t->xt_begin_time, (user_addr_t)outaddr, sizeof(uint64_t)); in xnupost_copyout_test()
199 kret = copyout(&t->xt_end_time, (user_addr_t)outaddr, sizeof(uint64_t)); in xnupost_copyout_test()
206 kret = copyout(t->xt_name, (user_addr_t)outaddr, namelen); in xnupost_copyout_test()
259 kret = copyout(&timebase, (user_addr_t)user_addr, sizeof(timebase)); in xnupost_export_testdata()
266 kret = copyout(&version[0], (user_addr_t)user_addr, length_to_copy); in xnupost_export_testdata()
272 kret = copyout(PE_boot_args(), (user_addr_t)user_addr, length_to_copy); in xnupost_export_testdata()
H A Dcopyio_tests.c170 return copyout(out_buf, (uintptr_t)data->kern_addr, copyio_test_buf_size); in copyout_to_kernel()
183 int err = copyout(out_buf, data->user_addr, copyio_test_buf_size); in copyout_test()
189 err = copyout(NULL, data->unmapped_addr, 0); in copyout_test()
192 err = copyout(out_buf, data->unmapped_addr, copyio_test_buf_size); in copyout_test()
194 err = copyout(out_buf, data->unmapped_addr - PAGE_SIZE, PAGE_SIZE * 2); in copyout_test()
196 err = copyout(out_buf, data->user_lastpage_addr, PAGE_SIZE * 2); in copyout_test()
209 err = copyout(out_buf, data->user_addr, copyio_test_buf_size); in copyout_test()
/xnu-12377.61.12/bsd/kern/
H A Dsys_recount.c111 return copyout(&counts, buf, MIN(sizeof(counts), size)); in _selfcounts()
115 return copyout(&counts, buf, MIN(sizeof(counts), size)); in _selfcounts()
119 return copyout(&counts, buf, MIN(sizeof(counts), size)); in _selfcounts()
147 return copyout(&counts, buf, MIN(sizeof(counts[0]) * counts_len, size)); in _selfcounts_perf_level()
155 return copyout(&counts, buf, MIN(sizeof(counts[0]) * counts_len, size)); in _selfcounts_perf_level()
163 return copyout(&counts, buf, MIN(sizeof(counts[0]) * counts_len, size)); in _selfcounts_perf_level()
250 int error = copyout(&counts, uaddr, copyout_size); in proc_pidthreadcounts()
H A Dproc_info.c478 error = copyout((caddr_t)ptr, buffer, n * sizeof(int)); in proc_listpids()
547 error = copyout(kbuf, buffer, count * sizeof(struct proc_fdinfo)); in proc_pidfdlist()
651 error = copyout(kbuf, buffer, numfileports * sizeof(*pfi)); in proc_pidfileportlist()
1127 error = copyout(kbuf, buffer, ret); in proc_pidlistthreads()
1147 error = copyout(&preginfo, buffer, sizeof(struct proc_regioninfo)); in proc_pidregioninfo()
1183 error = copyout(&preginfo, buffer, sizeof(struct proc_regionwithpathinfo)); in proc_pidregionpathinfo()
1223 error = copyout(&preginfo, buffer, sizeof(struct proc_regionwithpathinfo)); in proc_pidregionpathinfo2()
1262 error = copyout(&path, buffer, sizeof(struct proc_regionpath)); in proc_pidregionpath()
1328 error = copyout(&preginfo, buffer, sizeof(struct proc_regionwithpathinfo)); in proc_pidregionpathinfo3()
1393 error = copyout(&pvninfo, buffer, sizeof(struct proc_vnodepathinfo)); in proc_pidvnodepathinfo()
[all …]
H A Dsys_persona.c115 error = copyout(kinfo, infop, kinfo_size); in kpersona_copyout()
175 error = copyout(&persona->pna_id, idp, sizeof(persona->pna_id)); in kpersona_alloc_syscall()
255 error = copyout(&persona->pna_id, idp, sizeof(persona->pna_id)); in kpersona_get_syscall()
443 error = copyout(&persona[i]->pna_id, in kpersona_find_syscall()
459 (void)copyout(&k_idlen, idlenp, sizeof(u_idlen)); in kpersona_find_syscall()
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_work_interval.c104 if ((error = copyout(&create_params, uap->arg, sizeof(create_params)))) { in work_interval_ctl()
128 if ((error = copyout(&create_params, uap->arg, sizeof(create_params)))) { in work_interval_ctl()
195 if ((error = copyout(&workload_id_params, uap->arg, in work_interval_ctl()
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()
750 error = copyout(&user_atv, uap->olddelta, sizeof(user_atv)); in adjtime()
755 error = copyout(&user_atv, uap->olddelta, sizeof(user_atv)); in adjtime()
H A Dsys_coalition.c90 error = copyout(&cid, cidp, sizeof(cid)); in coalition_create_syscall()
272 return copyout(&cru, buffer, MIN(bufsize, sizeof(cru))); in coalition_info_resource_usage()
288 return copyout(&c_debuginfo, buffer, MIN(bufsize, sizeof(c_debuginfo))); in coalition_info_get_debug_info()
369 error = copyout(pid_list, buffer, size_out); in coalition_info_pid_list()
455 error = copyout(&size64out, bufsizep, sizeof(user64_size_t)); in coalition_info()
459 error = copyout(&size32out, bufsizep, sizeof(user32_size_t)); in coalition_info()
H A Dkern_time.c139 error = copyout(&user_atv, uap->tp, sizeof(user_atv)); in gettimeofday()
144 error = copyout(&user_atv, uap->tp, sizeof(user_atv)); in gettimeofday()
156 error = copyout((caddr_t)&ltz, CAST_USER_ADDR_T(uap->tzp), sizeof(tz)); in gettimeofday()
160 error = copyout(&mach_time, uap->mach_absolute_time, sizeof(mach_time)); in gettimeofday()
366 return copyout((caddr_t)&user_itv, uap->itv, sizeof(user_itv)); in getitimer()
374 return copyout((caddr_t)&user_itv, uap->itv, sizeof(user_itv)); in getitimer()
H A Duipc_syscalls.c681 error = copyout(__SA_UTILS_CONV_TO_BYTES(sa), uap->name, namelen); in accept_nocancel()
687 error = copyout((caddr_t)&namelen, uap->anamelen, in accept_nocancel()
968 error1 = copyout(&bytes_written, uap->len, sizeof(user64_size_t)); in connectx_nocancel()
970 error1 = copyout(&bytes_written, uap->len, sizeof(user32_size_t)); in connectx_nocancel()
979 error1 = copyout(&cid, uap->connid, sizeof(cid)); in connectx_nocancel()
1248 if ((error = copyout(sv, uap->rsv, 2 * sizeof(int))) != 0) { in socketpair()
1989 error = copyout(__SA_UTILS_CONV_TO_BYTES(fromsa), name, (unsigned)len); in copyout_sa()
2017 error = copyout(fromsa, name, (unsigned)len); in copyout_maddr()
2090 error = copyout(tmp_buffer, ctlbuf, tocopy); in copyout_control()
2112 error = copyout((caddr_t) cp, ctlbuf, tocopy); in copyout_control()
[all …]
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 Dkern_proc.c3609 error = copyout(fakeheader, uaddr, sizeof(fakeheader)); in csops_copy_token()
3615 return copyout(start, uaddr, length); in csops_copy_token()
3724 error = copyout(&retflags, uaddr, sizeof(uint32_t)); in csops_internal()
3783 error = copyout(&toff, uaddr, sizeof(toff)); in csops_internal()
3801 error = copyout(cdhash_info.hash, uaddr, sizeof(cdhash_info.hash)); in csops_internal()
3821 error = copyout(&cdhash_info, uaddr, sizeof(cdhash_info)); in csops_internal()
3908 error = copyout(&validation_category, uaddr, sizeof(validation_category)); in csops_internal()
4052 error = copyout(fakeheader, uaddr, sizeof(fakeheader)); in csops_internal()
4060 error = copyout(identity, uaddr + sizeof(fakeheader), length); in csops_internal()
5618 (void) copyout((char *) &pid, pid_addr, sizeof(int)); in pid_for_task()
[all …]
/xnu-12377.61.12/bsd/libkern/
H A Dcopyio.h36 int copyout(const void *__sized_by(len) 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-12377.61.12/bsd/nfs/
H A Dnfs_syscalls.c411 error = copyout((caddr_t)&nfh, uap->fhp, sizeof(fhandle_t)); in getfh()
1350 error = copyout(&stat_desc, oldp, sizeof(struct nfs_export_stat_desc)); in nfssvc_exportstats()
1354 error = copyout(&stat_desc_size, newlenp, sizeof(stat_desc_size)); in nfssvc_exportstats()
1377 error = copyout(&totlen, newlenp, sizeof(totlen)); in nfssvc_exportstats()
1387 (void)copyout(&totlen, newlenp, sizeof(totlen)); in nfssvc_exportstats()
1393 error = copyout(&totlen, newlenp, sizeof(totlen)); in nfssvc_exportstats()
1402 error = copyout(&stat_desc, oldp, sizeof(struct nfs_export_stat_desc)); in nfssvc_exportstats()
1413 error = copyout(&stat_desc, oldp, sizeof(struct nfs_export_stat_desc)); in nfssvc_exportstats()
1427 error = copyout(&stat_desc, oldp + pos, sizeof(struct nfs_export_stat_desc)); in nfssvc_exportstats()
1455 error = copyout(&statrec, oldp + pos, sizeof(statrec)); in nfssvc_exportstats()
[all …]
/xnu-12377.61.12/osfmk/i386/
H A DDiagnostics.c162 (void) copyout((char *) &real_ncpus, data, sizeof(real_ncpus)); /* Copy out number of in diagCall64()
175 (void) copyout((char *) &durNap, curpos, 8); /* Copy out the time in diagCall64()
177 …(void) copyout((char *) &cpu_data_ptr[i]->cpu_hwIntCnt, curpos + 8, 256 * sizeof(uint32_t)); /*… in diagCall64()
265 copyout(&pkes, regs->rsi, sizeof(pkes)); in diagCall64()
295 copyout(&cest, curpos, sizeof(cest)); in diagCall64()
/xnu-12377.61.12/bsd/dev/
H A Dmonotonic.c205 error = copyout(&ctl, uptr, sizeof(ctl.out)); in mt_ctl_add()
239 error = copyout(&counts, uptr, sizeof(counts)); in mt_ctl_counts()
311 error = copyout(&info, uptr, sizeof(info)); in mt_cdev_ioctl()
428 return copyout(counts, req->oldptr, MIN(req->oldlen, sizeof(counts)));
/xnu-12377.61.12/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.c72 if (copyout(from, to, len)) { in copyoutstr()
/xnu-12377.61.12/bsd/pgo/
H A Dprofile_runtime.c238 err = copyout(buffer, uap->buffer, size); in grab_pgo_data()
286 err = copyout(buffer, uap->buffer, size); in grab_pgo_data()
/xnu-12377.61.12/bsd/man/man9/
H A DMakefile19 copyout.9 \
/xnu-12377.61.12/bsd/skywalk/nexus/
H A Dnexus_syscalls.c133 err = copyout(&init, uap->init, sizeof(init)); in __nexus_open()
225 err = copyout(&nxprov->nxprov_uuid, uap->prov_uuid, sizeof(uuid_t)); in __nexus_register()
342 err = copyout(&nx->nx_uuid, uap->nx_uuid, sizeof(uuid_t)); in __nexus_create()
454 err = copyout(&optlen, uap->aoptlen, sizeof(optlen)); in __nexus_get_opt()
/xnu-12377.61.12/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-12377.61.12/osfmk/kern/
H A Dexclaves.c327 error = copyout(ipcb, ubuffer, usize); in _exclaves_ctl_trap()
373 kr = copyout(&name, ubuffer, sizeof(mach_port_name_t)); in _exclaves_ctl_trap()
513 error = copyout(&uresource, ubuffer, usize); in _exclaves_ctl_trap()
548 kr = copyout(&name, ubuffer, sizeof(mach_port_name_t)); in _exclaves_ctl_trap()
608 kr = copyout(&name, ubuffer, sizeof(mach_port_name_t)); in _exclaves_ctl_trap()
639 kr = copyout(&status, ubuffer, sizeof(exclaves_sensor_status_t)); in _exclaves_ctl_trap()
664 kr = copyout(&status, ubuffer, sizeof(exclaves_sensor_status_t)); in _exclaves_ctl_trap()
690 kr = copyout(&status, ubuffer, sizeof(exclaves_sensor_status_t)); in _exclaves_ctl_trap()
737 error = copyout(notification_resource_user, ubuffer, usize); in _exclaves_ctl_trap()
767 error = copyout(&num_message, ubuffer, sizeof(num_message)); in _exclaves_ctl_trap()
[all …]
/xnu-12377.61.12/bsd/dev/arm/
H A Dstubs.c52 if (copyout(from, to, len)) { in copyoutstr()

12345