Defined in 3 files as a macro:
Defined in 1 files as a function:
Referenced in 347 files:
- cddl/contrib/opensolaris/lib/libdtrace/common/dt_program.c, line 175
- contrib/binutils/libiberty/strerror.c, 2 times
- contrib/capsicum-test/linux.cc, line 1351
- contrib/ee/ee.c, line 2254
- contrib/gdb/gdb/remote-fileio.c, line 228
- contrib/ipfilter/ip_dstlist.c, 8 times
- contrib/ipfilter/ip_fil.c, line 513
- contrib/ipfilter/tools/ipfstat.c, line 2216
- contrib/jemalloc/src/ctl.c, 28 times
- contrib/jemalloc/src/prof.c, 2 times
- contrib/libpcap/pcap-bpf.c, line 995
- contrib/llvm-project/compiler-rt/lib/sanitizer_common/sanitizer_linux.cpp, line 2236
- contrib/llvm-project/compiler-rt/lib/sanitizer_common/sanitizer_posix_libcdep.cpp, line 289
- contrib/llvm-project/libcxx/include/errno.h, line 297
- contrib/llvm-project/lldb/source/Host/posix/ConnectionFileDescriptorPosix.cpp, line 419
- contrib/llvm-project/openmp/runtime/src/z_Linux_util.cpp, 2 times
- contrib/netbsd-tests/fs/vfs/t_io.c, line 236
- contrib/netbsd-tests/fs/vfs/t_vnops.c, 2 times
- contrib/netbsd-tests/include/t_errno.c, line 215
- contrib/netbsd-tests/lib/libc/gen/exect/t_exect.c, line 79
- contrib/netbsd-tests/lib/libc/gen/execve/t_execve.c, 2 times
- contrib/netbsd-tests/lib/libc/gen/t_getcwd.c, line 63
- contrib/netbsd-tests/lib/libc/sys/t_access.c, 2 times
- contrib/netbsd-tests/lib/libc/sys/t_chroot.c, line 127
- contrib/netbsd-tests/lib/libc/sys/t_getcontext.c, 2 times
- contrib/netbsd-tests/lib/libc/sys/t_getgroups.c, line 56
- contrib/netbsd-tests/lib/libc/sys/t_getitimer.c, 2 times
- contrib/netbsd-tests/lib/libc/sys/t_getlogin.c, 4 times
- contrib/netbsd-tests/lib/libc/sys/t_getrusage.c, line 94
- contrib/netbsd-tests/lib/libc/sys/t_gettimeofday.c, line 52
- contrib/netbsd-tests/lib/libc/sys/t_link.c, 2 times
- contrib/netbsd-tests/lib/libc/sys/t_mincore.c, line 134
- contrib/netbsd-tests/lib/libc/sys/t_mkdir.c, line 74
- contrib/netbsd-tests/lib/libc/sys/t_mkfifo.c, line 131
- contrib/netbsd-tests/lib/libc/sys/t_mknod.c, line 75
- contrib/netbsd-tests/lib/libc/sys/t_msgctl.c, line 91
- contrib/netbsd-tests/lib/libc/sys/t_msgrcv.c, line 173
- contrib/netbsd-tests/lib/libc/sys/t_msgsnd.c, line 194
- contrib/netbsd-tests/lib/libc/sys/t_msync.c, line 185
- contrib/netbsd-tests/lib/libc/sys/t_nanosleep.c, line 132
- contrib/netbsd-tests/lib/libc/sys/t_poll.c, 2 times
- contrib/netbsd-tests/lib/libc/sys/t_revoke.c, line 114
- contrib/netbsd-tests/lib/libc/sys/t_setrlimit.c, line 171
- contrib/netbsd-tests/lib/libc/sys/t_socketpair.c, line 130
- contrib/netbsd-tests/lib/libc/sys/t_stat.c, 4 times
- contrib/netbsd-tests/lib/libc/sys/t_truncate.c, line 156
- contrib/netbsd-tests/lib/libc/sys/t_write.c, line 83
- contrib/netbsd-tests/rump/rumpkern/t_copy.c, 4 times
- contrib/ntp/include/timepps-SCO.h, 5 times
- contrib/ntp/include/timepps-Solaris.h, 5 times
- contrib/ntp/include/timepps-SunOS.h, 5 times
- contrib/ntp/libntp/ntp_intres.c, 2 times
- contrib/ntp/libntp/work_thread.c, line 819
- contrib/ntp/ntpd/ntp_loopfilter.c, line 261
- contrib/ofed/libibverbs/verbs.c, line 687
- contrib/openbsm/libbsm/bsm_errno.c, line 95
- contrib/openbsm/test/bsm/generate.c, line 1011
- contrib/pjdfstest/pjdfstest.c, 2 times
- contrib/sendmail/libsm/ldap.c, 2 times
- contrib/sendmail/libsm/mbdb.c, line 507
- crypto/heimdal/lib/kafs/afssys.c, line 197
- crypto/openssh/atomicio.c, line 148
- crypto/openssh/sftp-server.c, line 199
- lib/libc/gen/getentropy.c, 3 times
- lib/libc/net/sctp_sys_calls.c, 3 times
- lib/libc/stdlib/getenv.c, 3 times
- lib/libc/tests/gen/getentropy_test.c, line 59
- lib/libc/tests/sys/sendfile_test.c, 4 times
- lib/libcasper/services/cap_fileargs/cap_fileargs.c, line 385
- lib/libcasper/services/cap_grp/cap_grp.c, line 700
- lib/libcasper/services/cap_pwd/cap_pwd.c, line 694
- lib/libsysdecode/errno.c, line 66
- lib/libthr/thread/thr_barrier.c, line 118
- lib/libthr/thread/thr_cond.c, line 110
- lib/libthr/thread/thr_mutex.c, line 400
- lib/libthr/thread/thr_pspinlock.c, line 70
- lib/libthr/thread/thr_rwlock.c, line 112
- lib/libthread_db/thread_db.c, 2 times
- lib/libvmmapi/vmmapi.c, line 1343
- lib/libvmmapi/vmmapi_freebsd.c, line 107
- sbin/routed/if.c, line 699
- sbin/routed/table.c, line 1072
- stand/userboot/test/test.c, 2 times
- sys/amd64/amd64/efirt_support.S, line 115
- sys/amd64/amd64/genassym.c, 2 times
- sys/amd64/amd64/mem.c, 3 times
- sys/amd64/amd64/pmap.c, line 10948
- sys/amd64/amd64/support.S, 3 times
- sys/amd64/ia32/ia32_syscall.c, 4 times
- sys/amd64/include/vmm_snapshot.h, line 135
- sys/amd64/linux/linux_support.s, line 38
- sys/amd64/linux/linux_sysvec.c, 7 times
- sys/amd64/linux32/linux32_support.s, line 38
- sys/amd64/linux32/linux32_sysvec.c, 9 times
- sys/amd64/vmm/vmm.c, 4 times
- sys/amd64/vmm/vmm_dev.c, 3 times
- sys/amd64/vmm/vmm_instruction_emul.c, 3 times
- sys/arm/annapurna/alpine/alpine_machdep.c, 4 times
- sys/arm/annapurna/alpine/alpine_machdep_mp.c, 6 times
- sys/arm/arm/bcopyinout.S, 5 times
- sys/arm/arm/bcopyinout_xscale.S, 6 times
- sys/arm/arm/copystr.S, line 123
- sys/arm/arm/machdep.c, 3 times
- sys/arm/arm/mem.c, 2 times
- sys/arm/arm/trap-v4.c, 2 times
- sys/arm/arm/trap-v6.c, line 639
- sys/arm/include/cpu-v6.h, 4 times
- sys/arm64/arm64/copyinout.S, line 55
- sys/arm64/arm64/cpufunc_asm.S, line 180
- sys/arm64/arm64/freebsd32_machdep.c, 3 times
- sys/arm64/arm64/machdep.c, line 710
- sys/arm64/arm64/mem.c, 2 times
- sys/arm64/linux/linux_sysvec.c, 7 times
- sys/cam/cam_xpt.c, 5 times
- sys/cam/scsi/scsi_sa.c, line 1435
- sys/cam/scsi/scsi_target.c, line 591
- sys/cddl/contrib/opensolaris/uts/common/dtrace/dtrace.c, 29 times
- sys/cddl/contrib/opensolaris/uts/common/dtrace/fasttrap.c, 4 times
- sys/cddl/dev/dtrace/dtrace_ioctl.c, 12 times
- sys/compat/cloudabi/cloudabi_errno.c, line 60
- sys/compat/cloudabi/cloudabi_futex.c, 3 times
- sys/compat/freebsd32/freebsd32_misc.c, 9 times
- sys/compat/linprocfs/linprocfs.c, line 1293
- sys/compat/linux/linux_futex.c, 8 times
- sys/compat/linux/linux_ioctl.c, line 2832
- sys/compat/linux/linux_misc.c, 3 times
- sys/compat/linux/linux_socket.c, line 1015
- sys/compat/linuxkpi/common/include/linux/kernel.h, line 462
- sys/compat/linuxkpi/common/src/linux_compat.c, 2 times
- sys/compat/linuxkpi/common/src/linux_page.c, line 204
- sys/contrib/ena-com/ena_plat.h, line 179
- sys/contrib/ipfilter/netinet/fil.c, 33 times
- sys/contrib/ipfilter/netinet/ip_auth.c, 2 times
- sys/contrib/ipfilter/netinet/ip_dstlist.c, 8 times
- sys/contrib/ipfilter/netinet/ip_frag.c, 2 times
- sys/contrib/ipfilter/netinet/ip_htable.c, 7 times
- sys/contrib/ipfilter/netinet/ip_lookup.c, 8 times
- sys/contrib/ipfilter/netinet/ip_nat.c, 12 times
- sys/contrib/ipfilter/netinet/ip_pool.c, 5 times
- sys/contrib/ipfilter/netinet/ip_scan.c, line 607
- sys/contrib/ipfilter/netinet/ip_state.c, 15 times
- sys/contrib/ipfilter/netinet/ip_sync.c, 2 times
- sys/contrib/ncsw/inc/error_ext.h, line 108
- sys/contrib/openzfs/lib/libzfs/libzfs_sendrecv.c, 4 times
- sys/contrib/openzfs/lib/libzfs/libzfs_util.c, line 385
- sys/contrib/openzfs/lib/libzfs/os/freebsd/libzfs_ioctl_compat.c, line 104
- sys/contrib/openzfs/module/nvpair/nvpair.c, 38 times
- sys/contrib/openzfs/module/os/freebsd/zfs/kmod_core.c, 3 times
- sys/contrib/openzfs/module/os/freebsd/zfs/zfs_vnops.c, 2 times
- sys/contrib/openzfs/module/os/linux/spl/spl-proc.c, 3 times
- sys/contrib/openzfs/module/os/linux/zfs/zfs_ioctl_os.c, 2 times
- sys/contrib/openzfs/module/os/linux/zfs/zfs_vnops.c, 3 times
- sys/contrib/openzfs/module/os/linux/zfs/zpl_file.c, 2 times
- sys/contrib/openzfs/module/zcommon/zfs_uio.c, 5 times
- sys/contrib/openzfs/module/zfs/spa_errlog.c, 2 times
- sys/contrib/openzfs/module/zfs/vdev_label.c, line 1128
- sys/contrib/openzfs/module/zfs/zcp_global.c, line 44
- sys/contrib/openzfs/module/zfs/zfs_ioctl.c, 3 times
- sys/contrib/vchiq/interface/vchiq_arm/vchiq_arm.c, 6 times
- sys/contrib/vchiq/interface/vchiq_arm/vchiq_debugfs.c, 2 times
- sys/contrib/xz-embedded/linux/lib/xz/xz_dec_test.c, line 126
- sys/crypto/ccp/ccp_hardware.c, line 411
- sys/dev/aac/aac.c, line 3541
- sys/dev/aacraid/aacraid.c, line 3439
- sys/dev/al_eth/al_eth.c, 2 times
- sys/dev/an/if_an.c, 5 times
- sys/dev/ath/ath_dfs/null/dfs_null.c, line 280
- sys/dev/ath/if_ath_btcoex.c, line 476
- sys/dev/ath/if_ath_lna_div.c, line 206
- sys/dev/ath/if_ath_spectral.c, line 290
- sys/dev/bhnd/bcma/bcma.c, 4 times
- sys/dev/bhnd/nvram/bhnd_nvram_iores.c, 2 times
- sys/dev/bhnd/nvram/bhnd_nvram_value.c, 11 times
- sys/dev/bhnd/nvram/bhnd_nvram_value_subr.c, 4 times
- sys/dev/bhnd/siba/siba.c, 2 times
- sys/dev/cfi/cfi_dev.c, line 107
- sys/dev/cfi/cfi_disk.c, line 305
- sys/dev/cpuctl/cpuctl.c, 3 times
- sys/dev/cxgb/cxgb_main.c, 4 times
- sys/dev/cxgbe/iw_cxgbe/provider.c, line 270
- sys/dev/cxgbe/t4_main.c, 3 times
- sys/dev/cxgbe/t4_vf.c, 2 times
- sys/dev/cxgbe/tom/t4_cpl_io.c, line 2125
- sys/dev/cxgbe/tom/t4_ddp.c, line 1342
- sys/dev/drm2/drm_buffer.c, 2 times
- sys/dev/drm2/drm_bufs.c, 6 times
- sys/dev/drm2/drm_context.c, line 332
- sys/dev/drm2/drm_crtc.c, 30 times
- sys/dev/drm2/drm_drv.c, line 309
- sys/dev/drm2/drm_ioctl.c, line 61
- sys/dev/drm2/drm_os_freebsd.h, 4 times
- sys/dev/drm2/drm_pci.c, line 236
- sys/dev/drm2/ttm/ttm_bo_vm.c, line 425
- sys/dev/ena/ena.c, 2 times
- sys/dev/ena/ena.h, line 530
- sys/dev/ena/ena_datapath.c, line 207
- sys/dev/ena/ena_netmap.c, 3 times
- sys/dev/flash/at45d.c, line 421
- sys/dev/flash/mx25l.c, line 621
- sys/dev/flash/n25q.c, line 419
- sys/dev/hpt27xx/hpt27xx_osm_bsd.c, 3 times
- sys/dev/hptiop/hptiop.c, 8 times
- sys/dev/hptmv/hptproc.c, line 330
- sys/dev/hptnr/hptnr_osm_bsd.c, 3 times
- sys/dev/hptrr/hptrr_osm_bsd.c, 3 times
- sys/dev/ice/ice_lib.c, 2 times
- sys/dev/ice/ice_strings.c, line 347
- sys/dev/ioat/ioat.c, line 775
- sys/dev/ixl/i40e_adminq.h, line 136
- sys/dev/ixl/i40e_nvm.c, 5 times
- sys/dev/ixl/ixl_pf_iov.c, 2 times
- sys/dev/mlx4/mlx4_core/mlx4_alloc.c, line 559
- sys/dev/mlx4/mlx4_core/mlx4_cmd.c, 2 times
- sys/dev/mlx4/mlx4_ib/mlx4_ib_alias_GUID.c, line 857
- sys/dev/mlx4/mlx4_ib/mlx4_ib_cq.c, 3 times
- sys/dev/mlx4/mlx4_ib/mlx4_ib_main.c, 2 times
- sys/dev/mlx4/mlx4_ib/mlx4_ib_qp.c, line 736
- sys/dev/mlx4/mlx4_ib/mlx4_ib_srq.c, 2 times
- sys/dev/mlx5/mlx5_ib/mlx5_ib_cq.c, 2 times
- sys/dev/mlx5/mlx5_ib/mlx5_ib_main.c, line 1613
- sys/dev/mlx5/mlx5_ib/mlx5_ib_mr.c, 4 times
- sys/dev/mlx5/mlx5_ib/mlx5_ib_qp.c, 4 times
- sys/dev/mlx5/mlx5_ib/mlx5_ib_srq.c, 2 times
- sys/dev/mmc/mmcsd.c, line 1086
- sys/dev/mpr/mpr.c, line 954
- sys/dev/mpr/mpr_user.c, 2 times
- sys/dev/mps/mps.c, line 931
- sys/dev/mps/mps_user.c, 2 times
- sys/dev/mthca/mthca_cmd.c, 2 times
- sys/dev/mthca/mthca_provider.c, 9 times
- sys/dev/mxge/if_mxge.c, line 1404
- sys/dev/netmap/if_vtnet_netmap.h, line 180
- sys/dev/netmap/netmap_bdg.c, 5 times
- sys/dev/nvd/nvd.c, 2 times
- sys/dev/nvme/nvme_ctrlr.c, line 1273
- sys/dev/oce/oce_if.c, 4 times
- sys/dev/ocs_fc/ocs_ioctl.c, 13 times
- sys/dev/ocs_fc/ocs_mgmt.c, 7 times
- sys/dev/pms/freebsd/driver/common/lxencrypt.c, 2 times
- sys/dev/qat/qat_ae.c, 3 times
- sys/dev/qat/qat_hw17.c, 2 times
- sys/dev/qlnx/qlnxr/qlnxr_verbs.c, 4 times
- sys/dev/rtwn/if_rtwn_efuse.c, 2 times
- sys/dev/safe/safe.c, line 1743
- sys/dev/sdhci/sdhci.c, line 779
- sys/dev/sfxge/common/ef10_nvram.c, 12 times
- sys/dev/sfxge/common/efx_lic.c, line 1224
- sys/dev/sfxge/common/efx_rx.c, 5 times
- sys/dev/sfxge/common/efx_sram.c, line 141
- sys/dev/sfxge/common/efx_vpd.c, 10 times
- sys/dev/sfxge/common/siena_sram.c, 2 times
- sys/dev/sfxge/common/siena_vpd.c, line 272
- sys/dev/sume/if_sume.c, line 774
- sys/dev/twe/twe.c, line 645
- sys/dev/usb/usb_generic.c, line 928
- sys/dev/xen/evtchn/evtchn_dev.c, line 302
- sys/dev/xen/pcifront/pcifront.c, line 266
- sys/fs/cuse/cuse.c, 5 times
- sys/geom/geom_slice.c, line 209
- sys/geom/geom_subr.c, 2 times
- sys/i386/i386/copyout.c, 6 times
- sys/i386/i386/copyout_fast.s, line 179
- sys/i386/i386/genassym.c, 2 times
- sys/i386/i386/mem.c, 3 times
- sys/i386/i386/support.s, line 404
- sys/i386/i386/trap.c, 4 times
- sys/i386/linux/imgact_linux.c, line 105
- sys/i386/linux/linux_copyout.c, 5 times
- sys/i386/linux/linux_machdep.c, line 679
- sys/i386/linux/linux_sysvec.c, 9 times
- sys/kern/imgact_aout.c, 2 times
- sys/kern/imgact_elf.c, 5 times
- sys/kern/kern_cpuset.c, line 2085
- sys/kern/kern_exec.c, 9 times
- sys/kern/kern_physio.c, line 179
- sys/kern/kern_sig.c, 5 times
- sys/kern/kern_thr.c, 3 times
- sys/kern/kern_umtx.c, 77 times
- sys/kern/subr_uio.c, line 328
- sys/kern/sys_generic.c, line 994
- sys/kern/sys_pipe.c, line 895
- sys/kern/sys_process.c, line 267
- sys/kern/uipc_mqueue.c, line 1706
- sys/kern/uipc_socket.c, 2 times
- sys/kern/uipc_syscalls.c, line 1245
- sys/kern/vfs_acl.c, line 185
- sys/kern/vfs_aio.c, line 1294
- sys/kern/vfs_vnops.c, 4 times
- sys/mips/mips/freebsd32_machdep.c, line 243
- sys/mips/mips/mem.c, 2 times
- sys/mips/mips/pm_machdep.c, 3 times
- sys/mips/mips/support.S, 2 times
- sys/net/bpf_zerocopy.c, line 221
- sys/net/if_spppsubr.c, 2 times
- sys/net80211/ieee80211_ioctl.c, 2 times
- sys/netinet/sctp_asconf.c, 2 times
- sys/netinet/sctp_cc_functions.c, 3 times
- sys/netinet/sctp_output.c, 9 times
- sys/netinet/sctp_peeloff.c, 4 times
- sys/netinet/sctp_usrreq.c, 4 times
- sys/netinet/sctputil.c, 2 times
- sys/netinet/tcp_stacks/bbr.c, 2 times
- sys/netinet/tcp_stacks/rack.c, line 14909
- sys/netinet/tcp_usrreq.c, line 2426
- sys/netsmb/smb_subr.c, line 238
- sys/ofed/drivers/infiniband/core/ib_mad.c, 2 times
- sys/ofed/drivers/infiniband/core/ib_ucm.c, 24 times
- sys/ofed/drivers/infiniband/core/ib_ucma.c, 34 times
- sys/ofed/drivers/infiniband/core/ib_umem_odp.c, 2 times
- sys/ofed/drivers/infiniband/core/ib_user_mad.c, 16 times
- sys/ofed/drivers/infiniband/core/ib_uverbs_cmd.c, 66 times
- sys/ofed/drivers/infiniband/core/ib_uverbs_main.c, 4 times
- sys/ofed/drivers/infiniband/ulp/sdp/sdp_main.c, line 1159
- sys/ofed/include/rdma/ib_verbs.h, 2 times
- sys/powerpc/aim/mmu_oea.c, 2 times
- sys/powerpc/aim/mmu_oea64.c, 2 times
- sys/powerpc/booke/pmap.c, line 2043
- sys/powerpc/powernv/opal_flash.c, line 143
- sys/powerpc/powerpc/copyinout.c, 5 times
- sys/powerpc/powerpc/exec_machdep.c, 2 times
- sys/powerpc/powerpc/mem.c, 4 times
- sys/powerpc/powerpc/platform.c, line 240
- sys/powerpc/powerpc/support.S, line 538
- sys/riscv/riscv/copyinout.S, line 51
- sys/riscv/riscv/machdep.c, line 559
- sys/riscv/riscv/mem.c, 2 times
- sys/security/audit/bsm_errno.c, line 99
- sys/ufs/ffs/ffs_rawread.c, 2 times
- sys/vm/vm_glue.c, line 199
- sys/vm/vm_mmap.c, 3 times
- sys/xen/error.h, line 49
- sys/xen/interface/errno.h, line 46
- tests/sys/kern/kern_copyin.c, 7 times
- tests/sys/kern/pdeathsig.c, line 77
- tests/sys/kern/sys_getrandom.c, line 92
- tests/sys/kern/unix_passfd_test.c, line 613
- tests/sys/posixshm/posixshm_test.c, 2 times
- tools/regression/capsicum/syscalls/cap_getmode.c, 4 times
- tools/regression/posixsem/posixsem.c, 2 times
- tools/regression/sockets/accept_fd_leak/accept_fd_leak.c, line 195
- usr.sbin/bhyve/acpi.c, line 848
- usr.sbin/bhyve/gdb.c, 6 times
- usr.sbin/bhyve/snapshot.c, 2 times
- usr.sbin/bhyve/task_switch.c, line 699
- usr.sbin/bhyveload/bhyveload.c, 2 times
- usr.sbin/kldxref/ef.c, 4 times
- usr.sbin/kldxref/ef_obj.c, 5 times