| /xnu-10002.1.13/bsd/sys/ |
| H A D | signalvar.h | 82 #define KERN_SIG_CATCH CAST_USER_ADDR_T(2) 83 #define KERN_SIG_HOLD CAST_USER_ADDR_T(3) 84 #define KERN_SIG_WAIT CAST_USER_ADDR_T(4)
|
| /xnu-10002.1.13/bsd/kern/ |
| H A D | kern_physio.c | 191 error = vslock(CAST_USER_ADDR_T(buf_dataptr(bp)), in physio() 210 vsunlock(CAST_USER_ADDR_T(buf_dataptr(bp)), in physio()
|
| H A D | kern_exec.c | 673 exec_save_path(imgp, CAST_USER_ADDR_T(imgp->ip_interp_buffer), in exec_shell_imgact() 2173 UIO_SYSSPACE, CAST_USER_ADDR_T(excpath), imgp->ip_vfs_context); in exec_activate_image() 2282 UIO_SYSSPACE, CAST_USER_ADDR_T(excpath), imgp->ip_vfs_context); in exec_activate_image() 2700 CAST_USER_ADDR_T(psfa->psfaa_openargs.psfao_path), in exec_handle_file_actions() 2840 CAST_USER_ADDR_T(psfa->psfaa_chdirargs.psfac_path), in exec_handle_file_actions() 3477 px_args.attrp = CAST_USER_ADDR_T(px_args32.attrp); in posix_spawn() 3479 px_args.file_actions = CAST_USER_ADDR_T(px_args32.file_actions); in posix_spawn() 3481 px_args.port_actions = CAST_USER_ADDR_T(px_args32.port_actions); in posix_spawn() 3483 px_args.mac_extensions = CAST_USER_ADDR_T(px_args32.mac_extensions); in posix_spawn() 3485 px_args.coal_info = CAST_USER_ADDR_T(px_args32.coal_info); in posix_spawn() [all …]
|
| H A D | kpi_socket.c | 527 sopt.sopt_val = CAST_USER_ADDR_T(optval); in sock_getsockopt() 556 sopt.sopt_val = CAST_USER_ADDR_T(optval); in sock_setsockopt() 619 sopt.sopt_val = CAST_USER_ADDR_T(&sotc); in sock_settclassopt() 643 sopt.sopt_val = CAST_USER_ADDR_T(optval); in sock_settclassopt() 680 sopt.sopt_val = CAST_USER_ADDR_T(optval); in sock_gettclassopt() 744 CAST_USER_ADDR_T((tempp + i)->iov_base), in sock_receive_internal() 872 CAST_USER_ADDR_T((tempp + i)->iov_base), in sock_send_internal()
|
| H A D | sys_work_interval.c | 167 user_addr_t wlidp_name = CAST_USER_ADDR_T(workload_id_params.wlidp_name); in work_interval_ctl()
|
| H A D | imageboot.c | 523 NDINIT(&ndp, LOOKUP, OP_OPEN, LOCKLEAF, UIO_SYSSPACE, CAST_USER_ADDR_T(filename), ctx); in ubc_getobject_from_filename() 573 NDINIT(&ndp, LOOKUP, OP_OPEN, LOCKLEAF | FOLLOW, UIO_SYSSPACE, CAST_USER_ADDR_T(path), ctx); in imageboot_read_file_internal() 743 NDINIT(&ndp, LOOKUP, OP_OPEN, LOCKLEAF, UIO_SYSSPACE, CAST_USER_ADDR_T(path), ctx); in imgboot_get_image_file()
|
| H A D | kern_aio.c | 1254 sigev->sigev_notify_function = CAST_USER_ADDR_T(sigevent32.sigev_notify_function); in aio_copy_in_sigev() 1255 sigev->sigev_notify_attributes = CAST_USER_ADDR_T(sigevent32.sigev_notify_attributes); in aio_copy_in_sigev() 2207 the_user_aiocbp->aio_buf = CAST_USER_ADDR_T(my_aiocbp->aio_buf); in do_munge_aiocb_user32_to_user() 2224 CAST_USER_ADDR_T(my_aiocbp->aio_sigevent.sigev_notify_function); in do_munge_aiocb_user32_to_user() 2226 CAST_USER_ADDR_T(my_aiocbp->aio_sigevent.sigev_notify_attributes); in do_munge_aiocb_user32_to_user()
|
| H A D | kern_symfile.c | 266 NDINIT(&nd, LOOKUP, OP_OPEN, ndflags, UIO_SYSSPACE, CAST_USER_ADDR_T(ref->name), ref->ctx); in kern_open_file_for_direct_io() 735 error = unlink1(ref->ctx, NULLVP, CAST_USER_ADDR_T(ref->name), UIO_SYSSPACE, 0); in kern_close_file_for_direct_io()
|
| /xnu-10002.1.13/osfmk/ipc/ |
| H A D | mach_kernelrpc.c | 295 if ((rv = mach_copyin(CAST_USER_ADDR_T(args->count), &count, sizeof(count)))) { in _kernelrpc_mach_port_get_attributes_trap() 304 rv = mach_copyout(&count, CAST_USER_ADDR_T(args->count), sizeof(count)); in _kernelrpc_mach_port_get_attributes_trap() 307 rv = mach_copyout(info, CAST_USER_ADDR_T(args->info), count * sizeof(info[0])); in _kernelrpc_mach_port_get_attributes_trap() 512 if ((kr = mach_copyin(CAST_USER_ADDR_T(args->recipes), (void *)krecipes, args->recipes_size))) { in host_create_mach_voucher_trap() 567 if ((kr = mach_copyin(CAST_USER_ADDR_T(args->recipe), (void *)krecipe, max_sz))) { in mach_voucher_extract_attr_recipe_trap() 576 kr = mach_copyout(krecipe, CAST_USER_ADDR_T(args->recipe), sz); in mach_voucher_extract_attr_recipe_trap()
|
| /xnu-10002.1.13/bsd/vfs/ |
| H A D | vfs_quota.c | 398 uio_addiov(auio, CAST_USER_ADDR_T(&header), sizeof(header)); in dqfileopen() 447 uio_addiov(auio, CAST_USER_ADDR_T(&header), sizeof(header)); in dqfileclose() 455 uio_addiov(auio, CAST_USER_ADDR_T(&header), sizeof(header)); in dqfileclose() 789 uio_addiov(auio, CAST_USER_ADDR_T(dqb), sizeof(struct dqblk)); in dqlookup() 811 uio_addiov(auio, CAST_USER_ADDR_T(dqb), sizeof(struct dqblk)); in dqlookup() 1004 uio_addiov(auio, CAST_USER_ADDR_T(&dqb), sizeof(struct dqblk)); in dqsync_locked()
|
| H A D | vfs_attrlist.c | 889 uio_addiov(auio, CAST_USER_ADDR_T(fndrinfo), 32); in setattrlist_setfinderinfo() 1221 CAST_USER_ADDR_T(attributeBuffer), num_bytes_valid); in getvolattrlist() 1619 error = copyout(ab.base, CAST_USER_ADDR_T(attributeBuffer), in getvolattrlist() 1870 uio_addiov(auio, CAST_USER_ADDR_T(abp->fixedcursor), in attr_pack_common() 3465 CAST_USER_ADDR_T(uap->path), &al, in getattrlist() 3466 CAST_USER_ADDR_T(uap->attributeBuffer), uap->bufferSize, in getattrlist() 3488 CAST_USER_ADDR_T(uap->path), &al, in getattrlistat() 3489 CAST_USER_ADDR_T(uap->attributeBuffer), uap->bufferSize, in getattrlistat() 3561 uio_addiov(rdir_uio, CAST_USER_ADDR_T(fvd->fv_buf), rdirbufsiz); in refill_fd_direntries() 3912 name_buffer = CAST_USER_ADDR_T(max_path_name_buf); in readdirattr() [all …]
|
| /xnu-10002.1.13/security/ |
| H A D | mac_vfs_subr.c | 181 uio_addiov(auio, CAST_USER_ADDR_T(buf), len); in mac_vnop_setxattr() 207 uio_addiov(auio, CAST_USER_ADDR_T(buf), len); in mac_vnop_getxattr()
|
| /xnu-10002.1.13/bsd/i386/ |
| H A D | types.h | 108 #define CAST_USER_ADDR_T(a_ptr) ((user_addr_t)((uintptr_t)(a_ptr))) macro
|
| /xnu-10002.1.13/bsd/arm/ |
| H A D | types.h | 95 #define CAST_USER_ADDR_T(a_ptr) ((user_addr_t)((uintptr_t)(a_ptr))) macro
|
| /xnu-10002.1.13/libkern/ |
| H A D | OSKextLib.cpp | 324 CAST_USER_ADDR_T(response), responseLength, in kext_request() 344 CAST_USER_ADDR_T(logData), logDataLength, in kext_request()
|
| /xnu-10002.1.13/osfmk/arm64/ |
| H A D | status.c | 1876 *user_stack = CAST_USER_ADDR_T(sp); in thread_userstack() 1881 *user_stack = CAST_USER_ADDR_T(USRSTACK64); in thread_userstack() 1999 *entry_point = CAST_USER_ADDR_T(state->pc); in thread_entrypoint() 2001 *entry_point = CAST_USER_ADDR_T(VM_MIN_ADDRESS); in thread_entrypoint() 2020 *entry_point = CAST_USER_ADDR_T(state->pc); in thread_entrypoint() 2022 *entry_point = CAST_USER_ADDR_T(VM_MIN_ADDRESS); in thread_entrypoint()
|
| /xnu-10002.1.13/bsd/nfs/ |
| H A D | nfs_syscalls.c | 255 UIO_SYSSPACE, CAST_USER_ADDR_T(nxfs_path), vfs_context_current()); in nfsrv_export_remainder() 323 UIO_SYSSPACE, CAST_USER_ADDR_T(path), vfs_context_current()); in getfh() 622 user_nfsdarg.name = CAST_USER_ADDR_T(tmp_args.name); in nfssvc() 1301 unxa.nxa_fspath = CAST_USER_ADDR_T(tnxa.nxa_fspath); in nfssvc_export() 1302 unxa.nxa_exppath = CAST_USER_ADDR_T(tnxa.nxa_exppath); in nfssvc_export() 1305 unxa.nxa_nets = CAST_USER_ADDR_T(tnxa.nxa_nets); in nfssvc_export()
|
| H A D | nfs_serv.c | 815 uio_addiov(auio, CAST_USER_ADDR_T((caddr_t)mbuf_data(mp)), mbuf_len(mp)); in nfsrv_readlink() 1021 uio_addiov(auio, CAST_USER_ADDR_T((caddr_t)mbuf_data(m)), mbuf_len(m)); in nfsrv_read() 1422 uio_addiov(auio, CAST_USER_ADDR_T((caddr_t)mbuf_data(m)), mlen); in nfsrv_write() 1731 uio_addiov(auio, CAST_USER_ADDR_T((caddr_t)mbuf_data(m)), tlen); in nfsrv_writegather() 2826 NDINIT(&fromni, DELETE, OP_UNLINK, WANTPARENT, UIO_SYSSPACE, CAST_USER_ADDR_T(frompath), ctx); in nfsrv_rename() 2857 NDINIT(&toni, RENAME, OP_RENAME, WANTPARENT, UIO_SYSSPACE, CAST_USER_ADDR_T(topath), ctx); in nfsrv_rename() 3436 NDINIT(&ni, CREATE, OP_LINK, LOCKPARENT, UIO_SYSSPACE, CAST_USER_ADDR_T(vnode_getname(vp)), ctx); in nfsrv_link() 3641 uio_addiov(auio, CAST_USER_ADDR_T(linkdata), linkdatalen); in nfsrv_symlink() 4331 uio_addiov(auio, CAST_USER_ADDR_T(rbuf), fullsiz); in nfsrv_readdir() 4585 uio_addiov(auio, CAST_USER_ADDR_T(rbuf), fullsiz); in nfsrv_readdirplus()
|
| /xnu-10002.1.13/bsd/net/ |
| H A D | if_headless.c | 1364 CAST_USER_ADDR_T(((struct ifmediareq64 *)ifmr)->ifmu_ulist) : in headless_ioctl() 1365 CAST_USER_ADDR_T(((struct ifmediareq32 *)ifmr)->ifmu_ulist); in headless_ioctl() 1414 user_addr = CAST_USER_ADDR_T(drv.ifdrvu_32->ifd_data); in headless_ioctl() 1418 user_addr = CAST_USER_ADDR_T(drv.ifdrvu_64->ifd_data); in headless_ioctl()
|
| H A D | if.c | 1851 error = ifconf(cmd, CAST_USER_ADDR_T(ifc.ifc_req), in ifioctl_ifconf() 1861 error = ifconf(cmd, CAST_USER_ADDR_T(ifc.ifc_req), &ifc.ifc_len); in ifioctl_ifconf() 1884 CAST_USER_ADDR_T(ifcr.ifcru_buffer)); in ifioctl_ifclone() 1893 CAST_USER_ADDR_T(ifcr.ifcru_buffer)); in ifioctl_ifclone() 2387 CAST_USER_ADDR_T(u.s64.ifar_uuids)); in ifioctl_netagent() 2594 error = copyin(CAST_USER_ADDR_T(ifo->ifo_ordered_indices), in ifioctl_iforder() 2651 CAST_USER_ADDR_T(ifo->ifo_ordered_indices), in ifioctl_iforder() 2887 CAST_USER_ADDR_T(ifpl.ifpl_list)); in ifioctl_protolist() 2900 CAST_USER_ADDR_T(ifpl.ifpl_list)); in ifioctl_protolist() 3120 CAST_USER_ADDR_T(((struct ifmediareq64 *)ifmr)->ifmu_ulist) : in compat_ifmu_ulist() [all …]
|
| H A D | ndrv.c | 700 user_addr = CAST_USER_ADDR_T(ndrvSpec64.demux_list); in ndrv_setspec() 717 user_addr = CAST_USER_ADDR_T(ndrvSpec32.demux_list); in ndrv_setspec()
|
| H A D | pktap.c | 437 error = copyout(x_filters, CAST_USER_ADDR_T(ifd->ifd_data), in pktap_getdrvspec() 454 error = copyout(&tap_count, CAST_USER_ADDR_T(ifd->ifd_data), sizeof(tap_count)); in pktap_getdrvspec() 497 error = copyin(CAST_USER_ADDR_T(ifd->ifd_data), &user_filters, (size_t)ifd->ifd_len); in pktap_setdrvspec()
|
| H A D | if_vlan.c | 1824 CAST_USER_ADDR_T(((struct ifmediareq32 *)ifmr)->ifmu_ulist); in vlan_ioctl() 1887 ? ifr->ifr_data64 : CAST_USER_ADDR_T(ifr->ifr_data); in vlan_ioctl() 1966 ? ifr->ifr_data64 : CAST_USER_ADDR_T(ifr->ifr_data); in vlan_ioctl()
|
| /xnu-10002.1.13/bsd/vm/ |
| H A D | vm_compressor_backing_file.c | 108 error = unlink1(context, NULLVP, CAST_USER_ADDR_T(path_addr), in vm_swapfile_close()
|
| /xnu-10002.1.13/bsd/dev/arm/ |
| H A D | unix_signal.c | 383 sp = CAST_USER_ADDR_T(ts.ts64.ss.sp); in sendsig() 388 sp = CAST_USER_ADDR_T(ts.ts32.ss.sp); in sendsig()
|