Kernel Functions

No overview available.

Topics

Functions

Debugger

Enter the kernel debugger.

IOAF_Float32ToNativeInt16

Converts 32-bit floating point to native 16-bit integer

IOAF_Float32ToNativeInt24

Converts 32-bit floating point to native 24-bit integer

IOAF_Float32ToNativeInt32

Converts 32-bit floating point to native 32-bit integer

IOAF_Float32ToSwapInt16

Converts 32-bit floating point to non-native 16-bit integer

IOAF_Float32ToSwapInt24

Converts 32-bit floating point to non-native 24-bit integer

IOAF_Float32ToSwapInt32

Converts 32-bit floating point to non-native 32-bit integer

IOAF_NativeInt16ToFloat32

Converts native 16-bit integer float to 32-bit float

IOAF_NativeInt24ToFloat32

Converts native 24-bit integer float to 32-bit float

IOAF_NativeInt32ToFloat32

Converts native 32-bit integer float to 32-bit float

IOAF_SwapInt16ToFloat32

Converts non-native 16-bit integer float to 32-bit float

IOAF_SwapInt24ToFloat32

Converts non-native 24-bit integer float to 32-bit float

IOAF_SwapInt32ToFloat32

Converts non-native 32-bit integer float to 32-bit float

IOAF_bcopy_WriteCombine

An efficient bcopy from "write combine" memory to regular memory. It is safe to assume that all memory has been copied when the function has completed

IOBSDNameMatching

Create a matching dictionary that specifies an IOService match based on BSD device name.

IOCreateThread

Deprecated function - use kernel_thread_start(). Create a kernel thread.

Deprecated
IODelay

Spin delay for a number of microseconds.

IOExitThread

Deprecated function - use thread_terminate(). Terminate execution of current thread.

Deprecated
IOFlushProcessorCache

Flushes the processor cache for mapped memory.

IOFree

Frees memory allocated with IOMalloc.

IOFreeAligned

Frees memory allocated with IOMallocAligned.

IOFreeContiguous

Deprecated - use IOBufferMemoryDescriptor. Frees memory allocated with IOMallocContiguous.

Deprecated
IOFreePageable

Frees memory allocated with IOMallocPageable.

IOGetTimeDeprecated
IOLockAlloc

Allocates and initializes a mutex.

IOLockFree

Frees a mutex.

IOLockGetMachLock

Accessor to a Mach mutex.

IOLockLock

Lock a mutex.

IOLockSleep

Sleep with mutex unlock and relock

IOLockTryLock

Attempt to lock a mutex.

IOLockUnlock

Unlock a mutex.

IOLog

Log a message to console in text mode, and /var/log/system.log.

IOLogv

Log a message to console in text mode, and /var/log/system.log.

IOMalloc

Allocates general purpose, wired memory in the kernel map.

IOMallocAligned

Allocates wired memory in the kernel map, with an alignment restriction.

IOMallocContiguous

Deprecated - use IOBufferMemoryDescriptor. Allocates wired memory in the kernel map, with an alignment restriction and physically contiguous.

Deprecated
IOMallocPageable

Allocates pageable memory in the kernel map.

IOMappedRead16

Read two bytes from the desired "Physical" IOSpace address.

IOMappedRead32

Read four bytes from the desired "Physical" IOSpace address.

IOMappedRead64

Read eight bytes from the desired "Physical" IOSpace address.

IOMappedRead8

Read one byte from the desired "Physical" IOSpace address.

IOMappedWrite16

Write two bytes to the desired "Physical" IOSpace address.

IOMappedWrite32

Write four bytes to the desired "Physical" IOSpace address.

IOMappedWrite64

Write eight bytes to the desired "Physical" IOSpace address.

IOMappedWrite8

Write one byte to the desired "Physical" IOSpace address.

IOPause

Spin delay for a number of nanoseconds.

IORWLockAlloc

Allocates and initializes a read/write lock.

IORWLockFree

Frees a read/write lock.

IORWLockGetMachLock

Accessor to a Mach read/write lock.

IORWLockRead

Lock a read/write lock for read.

IORWLockUnlock

Unlock a read/write lock.

IORWLockWrite

Lock a read/write lock for write.

IORecursiveLockAlloc

Allocates and initializes an recursive lock.

IORecursiveLockFree

Frees a recursive lock.

IORecursiveLockGetMachLock

Accessor to a Mach mutex.

IORecursiveLockHaveLock

Check if a recursive lock is held by the calling thread.

IORecursiveLockLock

Lock a recursive lock.

IORecursiveLockTryLock

Attempt to lock a recursive lock.

IORecursiveLockUnlock

Unlock a recursive lock.

IOSimpleLockAlloc

Allocates and initializes a spin lock.

IOSimpleLockFree

Frees a spin lock.

IOSimpleLockGetMachLock

Accessor to a Mach spin lock.

IOSimpleLockInit

Initialize a spin lock.

IOSimpleLockLock

Lock a spin lock.

IOSimpleLockTryLock

Attempt to lock a spin lock.

IOSimpleLockUnlock

Unlock a spin lock.

IOSimpleLockUnlockEnableInterrupt

Unlock a spin lock, and restore interrupt state.

IOSleep

Sleep the calling thread for a number of milliseconds.

IOUSBGetBillboardDescriptor

Find the first BillboardCapabilityDescriptor in a BOS descriptor

IOUSBGetConfigurationMaxPowerMilliAmps

Extract the maximum bus current required by a configuration descriptor

IOUSBGetContainerIDDescriptor

Find the first ContainerIDCapabilityDescriptor in a BOS descriptor

IOUSBGetEndpointAddress

Extract the direction and number of an endpoint from an endpoint descriptor

IOUSBGetEndpointDirection

Extract the direction of an endpoint from an endpoint descriptor

IOUSBGetEndpointIntervalEncodedMicroframes

Extract the interval of an endpoint descriptor

IOUSBGetEndpointIntervalFrames

Extract the interval of an endpoint descriptor

IOUSBGetEndpointIntervalMicroframes

Extract the interval of an endpoint descriptor

IOUSBGetEndpointMaxPacketSize

Extract the max packet size from an endpoint descriptor

IOUSBGetEndpointMaxStreams

Extract the number of streams supported by an endpoint

IOUSBGetEndpointMaxStreamsEncoded

Extract the number of streams supported by an endpoint

IOUSBGetEndpointNumber

Extract the number of an endpoint from an endpoint descriptor

IOUSBGetEndpointType

Extract the type of an endpoint from an endpoint descriptor

IOUSBGetNextAssociatedDescriptor

Get the next descriptor in a configuration descriptor that belongs to another container descriptor

IOUSBGetNextAssociatedDescriptorWithType

Find the next descriptor matching a given type within a configuration descriptor that belongs to another container descriptor

IOUSBGetNextCapabilityDescriptor

Get the next device capability descriptor in a BOS descriptor

IOUSBGetNextCapabilityDescriptorWithType

Find the next descriptor matching a given type within a BOS descriptor

IOUSBGetNextDescriptor

Get the next descriptor in a configuration descriptor

IOUSBGetNextDescriptorWithType

Find the next descriptor matching a given type within a configuration descriptor

IOUSBGetNextEndpointDescriptor

Find the next endpoint descriptor associated with an interface descriptor

IOUSBGetNextInterfaceAssociationDescriptor

Find the next interface association descriptor in a configuration descriptor

IOUSBGetNextInterfaceDescriptor

Find the next interface descriptor in a configuration descriptor

IOUSBGetSuperSpeedDeviceCapabilityDescriptor

Find the first SuperSpeedUSBDeviceCapabilityDescriptor in a BOS descriptor

IOUSBGetUSB20ExtensionDeviceCapabilityDescriptor

Find the first USB20ExtensionCapabilityDescriptor in a BOS descriptor

KUNCExecuteDeprecated
OSAddAtomic

32-bit add operation, performed atomically with respect to all devices that participate in the coherency architecture of the platform.

OSAddAtomic16

16-bit add operation, performed atomically with respect to all devices that participate in the coherency architecture of the platform.

OSAddAtomic64

64-bit atomic add operation.

OSAddAtomic8

8-bit add operation, performed atomically with respect to all devices that participate in the coherency architecture of the platform.

OSBitAndAtomic

32-bit logical and operation, performed atomically with respect to all devices that participate in the coherency architecture of the platform.

OSBitAndAtomic16

16-bit logical and operation, performed atomically with respect to all devices that participate in the coherency architecture of the platform.

OSBitAndAtomic8

8-bit logical and operation, performed atomically with respect to all devices that participate in the coherency architecture of the platform.

OSBitOrAtomic

32-bit logical or operation, performed atomically with respect to all devices that participate in the coherency architecture of the platform.

OSBitOrAtomic16

16-bit logical or operation, performed atomically with respect to all devices that participate in the coherency architecture of the platform.

OSBitOrAtomic8

8-bit logical or operation, performed atomically with respect to all devices that participate in the coherency architecture of the platform.

OSBitXorAtomic

32-bit logical xor operation, performed atomically with respect to all devices that participate in the coherency architecture of the platform.

OSBitXorAtomic16

16-bit logical xor operation, performed atomically with respect to all devices that participate in the coherency architecture of the platform.

OSBitXorAtomic8

8-bit logical xor operation, performed atomically with respect to all devices that participate in the coherency architecture of the platform.

OSCompareAndSwap

Compare and swap operation, performed atomically with respect to all devices that participate in the coherency architecture of the platform.

OSCompareAndSwap64

64-bit compare and swap operation.

OSCompareAndSwapPtr

Compare and swap operation, performed atomically with respect to all devices that participate in the coherency architecture of the platform.

OSDecrementAtomic

32-bit decrement operation, performed atomically with respect to all devices that participate in the coherency architecture of the platform.

OSDecrementAtomic16

16-bit decrement operation, performed atomically with respect to all devices that participate in the coherency architecture of the platform.

OSDecrementAtomic64

64-bit decrement.

OSDecrementAtomic8

8-bit decrement operation, performed atomically with respect to all devices that participate in the coherency architecture of the platform.

OSFree

Frees a block of memory allocated by OSMalloc.

OSIncrementAtomic

32-bit increment operation, performed atomically with respect to all devices that participate in the coherency architecture of the platform.

OSIncrementAtomic16

16-bit increment operation, performed atomically with respect to all devices that participate in the coherency architecture of the platform.

OSIncrementAtomic64

64-bit increment.

OSIncrementAtomic8

8-bit increment operation, performed atomically with respect to all devices that participate in the coherency architecture of the platform.

OSKextCancelRequest

Cancels a pending user-space kext request without invoking the callback.

OSKextGetCurrentIdentifier

Returns the CFBundleIdentifier for the calling kext as a C string.

OSKextGetCurrentLoadTag

Returns the run-time load tag for the calling kext as an OSKextLoadTag.

OSKextGetCurrentVersionString

Returns the CFBundleVersion for the calling kext as a C string.

OSKextLoadKextWithIdentifier

Request that a kext be loaded.

OSKextReleaseKextWithLoadTag

Release a loaded kext based on its load tag.

OSKextRequestResource

Requests data from a nonlocalized resource file in a kext bundle on disk.

OSKextRetainKextWithLoadTag

Retain a loaded kext based on its load tag, and enable autounload for that kext.

OSMalloc

Allocates a block of memory associated with a given OSMallocTag.

OSMalloc_Tagalloc

Creates a tag for use with OSMalloc functions.

OSMalloc_Tagfree

Frees a tag used with OSMalloc functions.

OSMalloc_noblock

Allocates a block of memory associated with a given OSMallocTag, returning NULL if it would block.

OSSynchronizeIO

The OSSynchronizeIO routine ensures orderly load and store operations to noncached memory mapped I/O devices.

OSTestAndClear

Bit test and clear operation, performed atomically with respect to all devices that participate in the coherency architecture of the platform.

OSTestAndSet

Bit test and set operation, performed atomically with respect to all devices that participate in the coherency architecture of the platform.

VNOP_BWRITE

Write a buffer to backing store.

VNOP_FSYNC

Call down to a filesystem to synchronize a file with on-disk state.

VNOP_GETXATTR

Get extended file attributes.

VNOP_IOCTL

Call down to a filesystem or device driver to execute various control operations on or request data about a file.

VNOP_READ

Call down to a filesystem to read file data.

VNOP_SETXATTR

Set extended file attributes.

VNOP_STRATEGY

Initiate I/O on a file (both read and write).

VNOP_WRITE

Call down to the filesystem to write file data.

buf_alloc

Allocate an uninitialized buffer.

buf_attr

Gets the attributes for this buf.

buf_bawrite

Start an asychronous write on a buffer.

buf_bdwrite

Mark a buffer for delayed write.

buf_biodone

Mark an I/O as completed.

buf_biowait

Wait for I/O on a buffer to complete.

buf_blkno

Get physical block number associated with a buffer, in the sense of VNOP_BLOCKMAP.

buf_bread

Synchronously read a block of a file.

buf_breadn

Read a block from a file with read-ahead.

buf_brelse

Release any claim to a buffer, sending it back to free lists.

buf_bwrite

Write a buffer's data to backing store.

buf_callback

Get the function set to be called when I/O on a buffer completes.

buf_clear

Zero out the storage associated with a buffer.

buf_clear_redundancy_flags

Clear flags on a buffer. @discussion: buffer_redundancy_flags &= ~flags

buf_clearflags

Clear flags on a buffer. @discussion: buffer_flags &= ~flags

buf_clone

Clone a buffer with a restricted range and an optional callback.

buf_count

Get count of valid bytes in a buffer. This may be less than the space allocated to the buffer.

buf_create_shadow

Create a shadow buffer with optional private storage and an optional callback.

buf_dataptr

Get the address at which a buffer's data is stored; for iobufs, this must be set with buf_setdataptr(). See buf_map().

buf_device

Get the device ID associated with a buffer.

buf_dirtyend

Get the ending offset of the dirty region associated with a buffer.

buf_dirtyoff

Get the starting offset of the dirty region associated with a buffer.

buf_drvdata

Get driver-specific data from a buffer.

buf_error

Get the error value associated with a buffer.

buf_flags

Get flags set on a buffer.

buf_flushdirtyblks

Write dirty file blocks to disk.

buf_free

Free a buffer that was allocated with buf_alloc().

buf_fromcache

Check if a buffer's data was found in core.

buf_fsprivate

Get filesystem-specific data from a buffer.

buf_fua

Check if a buffer is marked for write through disk caches.

buf_getblk

Traditional buffer cache routine to get a buffer corresponding to a logical block in a file.

buf_geteblk

Get a metadata buffer which is marked invalid and not associated with any vnode.

buf_invalblkno

Invalidate a filesystem logical block in a file.

buf_invalidateblks

Invalidate all the blocks associated with a vnode.

buf_iterate

Perform some operation on all buffers associated with a vnode.

buf_lblkno

Get logical block number associated with a buffer.

buf_map

Get virtual mappings for buffer data.

buf_markaged

Mark a buffer as "aged," i.e. as a good candidate to be discarded and reused after buf_brelse().

buf_markdelayed

Mark a buffer as a delayed write: mark it dirty without actually scheduling I/O.

buf_markeintr

Mark a buffer as having been interrupted during I/O.

buf_markfua

Mark a buffer for write through disk cache, if disk supports it.

buf_markinvalid

Mark a buffer as not having valid data and being ready for immediate reuse after buf_brelse().

buf_markstatic

Mark a buffer as being likely to contain static data.

buf_meta_bread

Synchronously read a metadata block of a file.

buf_meta_breadn

Read a metadata block from a file with read-ahead.

buf_proc

Get the process associated with this buffer.

buf_rcred

Get the credential associated with a buffer for reading.

buf_redundancy_flags

Get redundancy flags set on a buffer.

buf_reset

Reset I/O flag state on a buffer.

buf_resid

Get a count of bytes which were not consumed by an I/O on a buffer.

buf_set_redundancy_flags

Set redundancy flags on a buffer. @discussion: buffer_redundancy_flags |= flags

buf_setblkno

Set physical block number associated with a buffer.

buf_setcallback

Set a function to be called once when I/O on a buffer completes.

buf_setcount

Set count of valid bytes in a buffer. This may be less than the space allocated to the buffer.

buf_setdataptr

Set the address at which a buffer's data will be stored.

buf_setdevice

Set the device associated with a buffer.

buf_setdirtyend

Set the ending offset of the dirty region associated with a buffer.

buf_setdirtyoff

Set the starting offset of the dirty region associated with a buffer.

buf_setdrvdata

Set driver-specific data on a buffer.

buf_seterror

Set an error value on a buffer.

buf_setflags

Set flags on a buffer. @discussion: buffer_flags |= flags

buf_setfsprivate

Set filesystem-specific data on a buffer.

buf_setlblkno

Set logical block number associated with a buffer.

buf_setresid

Set a count of bytes outstanding for I/O in a buffer.

buf_setsize

Set size of data region allocated to a buffer.

buf_setupl

Set the UPL (Universal Page List), and offset therein, on a buffer.

buf_setvnode

Set the vnode associated with a buffer.

buf_shadow

returns true if 'bp' is a shadow of another buffer.

buf_size

Get size of data region allocated to a buffer.

buf_static

Check if a buffer contains static data.

buf_strategy

Pass an I/O request for a buffer down to the device layer.

buf_unmap

Release mappings for buffer data.

buf_upl

Get the upl (Universal Page List) associated with a buffer.

buf_uploffset

Get the offset into a UPL at which this buffer begins.

buf_valid

Check if a buffer contains valid data.

buf_vnode

Get the vnode associated with a buffer.

buf_wcred

Get the credential associated with a buffer for writing.

cache_enter

Add a (name,vnode) entry to the VFS namecache.

cache_lookup

Check for a filename in a directory using the VFS name cache.

cache_purge

Remove all data relating to a vnode from the namecache.

cache_purge_negatives

Remove all negative cache entries which are children of a given vnode.

dremDeprecated
finiteDeprecated
gammaDeprecated
ifaddr_address

Deprecated
ifaddr_ifnet

Deprecated
ifaddr_netmask

Deprecated
ifaddr_release

Deprecated
ifaddr_withaddr

Deprecated
ifaddr_withnet

Deprecated
iflt_attach

Deprecated
iflt_detach

Deprecated
ifmaddr_address

Deprecated
ifmaddr_ifnet

Deprecated
ifmaddr_release

Deprecated
ifnet_addrlen

Deprecated
ifnet_allocate

Deprecated
ifnet_attach

Deprecated
ifnet_baudrate

Deprecated
ifnet_detach

Deprecated
ifnet_event

Deprecated
ifnet_family

Deprecated
ifnet_flags

Deprecated
ifnet_hdrlen

Deprecated
ifnet_index

Deprecated
ifnet_input

Deprecated
ifnet_ioctl

Deprecated
ifnet_list_free

Deprecated
ifnet_list_get

Deprecated
ifnet_metric

Deprecated
ifnet_mtu

Deprecated
ifnet_name

Deprecated
ifnet_offload

Deprecated
ifnet_output

Deprecated
ifnet_reference

Deprecated
ifnet_release

Deprecated
ifnet_set_flags

Deprecated
ifnet_set_mtu

Deprecated
ifnet_set_stat

Deprecated
ifnet_softc

Deprecated
ifnet_stat

Deprecated
ifnet_type

Deprecated
ifnet_unit

Deprecated
kernel_thread_start

Create a kernel thread.

mach_absolute_time

Returns current value of a clock that increments monotonically in tick units (starting at an arbitrary point), this clock does not increment while the system is asleep.

mach_continuous_time

Returns current value of a clock that increments monotonically in tick units (starting at an arbitrary point), including while the system is asleep.

mbuf_adj

Deprecated
mbuf_adjustlen

Deprecated
mbuf_align_32

Deprecated
mbuf_copyback

Deprecated
mbuf_copydata

Deprecated
mbuf_copym

Deprecated
mbuf_data

Deprecated
mbuf_datastart

Deprecated
mbuf_dup

Deprecated
mbuf_flags

Deprecated
mbuf_free

Deprecated
mbuf_freem

Deprecated
mbuf_freem_list

Deprecated
mbuf_get

Deprecated
mbuf_get_mhlen

Deprecated
mbuf_get_mlen

Deprecated
mbuf_gethdr

Deprecated
mbuf_getpacket

Deprecated
mbuf_inet_cksum

Deprecated
mbuf_len

Deprecated
mbuf_maxlen

Deprecated
mbuf_mclget

Deprecated
mbuf_next

Deprecated
mbuf_nextpkt

Deprecated
mbuf_pkthdr_len

Deprecated
mbuf_prepend

Deprecated
mbuf_pulldown

Deprecated
mbuf_pullup

Deprecated
mbuf_setdata

Deprecated
mbuf_setflags

Deprecated
mbuf_setlen

Deprecated
mbuf_setnext

Deprecated
mbuf_setnextpkt

Deprecated
mbuf_settype

Deprecated
mbuf_split

Deprecated
mbuf_stats

Deprecated
mbuf_tag_find

Deprecated
mbuf_tag_free

Deprecated
mbuf_type

Deprecated
minphys

Adjust a buffer's count to be no more than maximum physical I/O transfer size for the host architecture.

os_log_create

Creates a custom log object, to be passed to logging functions for sending messages to the logging system.

os_log_debug_enabled

Returns a Boolean value indicating whether debug-level logging is enabled for a specified log object.

os_log_info_enabled

Returns a Boolean value indicating whether info-level logging is enabled for a specified log object.

physio

Perform I/O on a device to/from target memory described by a uio.

proc_pgrpid

Get the process group id for the passed-in process.

proc_selfpgrpid

Get the process group id for the current process, as with proc_pgrpid().

proto_inject

Deprecated
proto_input

Deprecated
rinttolDeprecated
roundtolDeprecated
sflt_attach

Deprecated
sflt_detach

Deprecated
sflt_register

Deprecated
sflt_unregister

Deprecated
significandDeprecated
sock_accept

Deprecated
sock_bind

Deprecated
sock_close

Deprecated
sock_connect

Deprecated
sock_getsockopt

Deprecated
sock_gettype

Deprecated
sock_ioctl

Deprecated
sock_listen

Deprecated
sock_receive

Deprecated
sock_send

Deprecated
sock_sendmbuf

Deprecated
sock_setpriv

Deprecated
sock_setsockopt

Deprecated
sock_shutdown

Deprecated
sock_socket

Deprecated
sockopt_copyin

Deprecated
sockopt_copyout

Deprecated
sockopt_level

Deprecated
sockopt_name

Deprecated
sockopt_valsize

Deprecated
sprintfDeprecated
strcatDeprecated
strcpyDeprecated
thread_call_allocate

Allocate a thread call to execute with default (high) priority.

thread_call_allocate_with_priority

Allocate a thread call to execute with a specified priority.

thread_call_cancel

Attempt to cancel a pending invocation of a thread call.

thread_call_cancel_wait

Attempt to cancel a pending invocation of a thread call. If unable to cancel, wait for current invocation to finish.

thread_call_enter

Submit a thread call work item for immediate execution.

thread_call_enter1

Submit a thread call work item for immediate execution, with an extra parameter.

thread_call_enter1_delayed

Submit a thread call to be executed at some point in the future, with an extra parameter.

thread_call_enter_delayed

Submit a thread call to be executed at some point in the future.

thread_call_free

Release a thread call.

thread_call_isactive

Determine whether a thread call is pending or currently executing.

vA128Shift

128-bit arithmetic (signed) shift.

vDSP_biquadm

Applies a single-precision multichannel biquad IIR filter.

vDSP_biquadm_CopyState

Copies the filter state from one single-precision multichannel biquad IIR filter object to another.

vDSP_biquadm_CopyStateD

Copies the filter state from one double-precision multichannel biquad IIR filter object to another.

vDSP_biquadm_CreateSetup

Builds a data structure that contains precalculated single-precision data for use by multichannel cascaded biquad IIR filter functions.

vDSP_biquadm_ResetState

Resets the filter state of a single-precision multichannel biquad IIR filter object.

vDSP_biquadm_ResetStateD

Resets the filter state of a double-precision multichannel biquad IIR filter object.

vDSP_biquadm_SetCoefficientsDouble

Updates the filter coefficients within a valid single-precision multichannel biquad IIR filter object. Filter coefficients are given in double precision.

vDSP_biquadm_SetCoefficientsSingle

Updates the filter coefficients within a valid single-precision multichannel biquad IIR filter object. Filter coefficients are given in single precision.

vDSP_biquadm_SetTargetsDouble

Sets target values for selected coefficients within a valid single-precision multichannel biquad IIR filter object. Filter coefficients are specified in double precision. Each selected coefficient is incremented at each sample until the difference between its value and the target value is less than a specified threshold.

vDSP_conv

Performs either correlation or convolution on two real vectors; single precision.

vDSP_create_fftsetup

Builds a data structure that contains precalculated data for use by single-precision FFT functions.

vDSP_deq22

Difference equation, 2 poles, 2 zeros; single precision.

vDSP_destroy_fftsetup

Frees an existing single-precision FFT data structure.

vDSP_fft_zrip

Computes an in-place single-precision real discrete Fourier transform, either from the time domain to the frequency domain (forward) or from the frequency domain to the time domain (inverse).

vDSP_rmsqv

Vector root-mean-square; single precision.

vDSP_svdiv

Divide scalar by vector; single precision.

vDSP_sve

Vector sum; single precision.

vDSP_sve_svesq

Sum of vector elements and sum of vector elements' squares; single precision.

vDSP_vadd

Adds two vectors; single precision.

vDSP_vclip

Vector clip; single precision.

vDSP_vclr

Vector clear; single precision.

vDSP_vdbcon

Vector convert power or amplitude to decibels; single precision.

vDSP_vfill

Vector fill; single precision.

vDSP_vfix16

Converts an array of single-precision floating-point values to signed 16-bit integer values, rounding towards zero.

vDSP_vflt16

Converts an array of signed 16-bit integers to single-precision floating-point values.

vDSP_vflt24

Converts signed 24-bit integer values to single-precision floating-point values.

vDSP_vflt32

Converts an array of signed 32-bit integers to single-precision floating-point values.

vDSP_vfltu24

Converts unsigned 24-bit integer values to single-precision floating-point values.

vDSP_vma

Vector multiply and add; single precision.

vDSP_vmax

Vector maxima; single precision.

vDSP_vmul

Vector multiplication; single precision.

vDSP_vsmfixu24

Scales and converts single-precision floating-point values to unsigned 24-bit integer values.

vDSP_vsub

Vector subtract; single precision.

vDSP_ztoc

Copies the contents of a split complex vector Z to an interleaved complex vector C; single precision.

vDSP_zvabs

Complex vector absolute values; single precision.

vDSP_zvdiv

Complex vector_vector divide; single precision.

vDSP_zvmul

Multiplies two complex vectors, optionally conjugating one of them; single precision.

vLL128Shift

128-bit logical left shift.

vLR128Shift

128-bit logical right shift.

vS128Add

Signed 128-bit addition (modular arithmetic).

vS128AddS

Signed 128-bit addition with saturation (clipping).

vS128Sub

Signed 128-bit subtraction (modular arithmetic).

vS128SubS

Signed 128-bit subtraction with saturation (clipping).

vS64FullMulOdd

Signed 64-bit multiplication; results are twice as wide as multiplicands, odd-numbered elements of multiplicand vectors are used. Note the big-endian convention: the leftmost element is element 0.

vS64SubS

Signed 64-bit subtraction with saturation (clipping).

vU128Add

Unsigned 128-bit addition (modular arithmetic).

vU128AddS

Unsigned 128-bit addition with saturation (clipping).

vU128Sub

Unsigned 128-bit subtraction (modular arithmetic).

vU128SubS

Unsigned 128-bit subtraction with saturation (clipping).

vU64FullMulOdd

Unsigned 64-bit multiplication; results are twice as wide as multiplicands, odd-numbered elements of multiplicand vectors are used. Note the big-endian convention: the leftmost element is element 0.

vcount

Count total references to a given file, disregarding "kusecount" (event listener, as with O_EVTONLY) references.

vflush

Reclaim the vnodes associated with a mount.

vfs_64bitready

Check if the filesystem associated with a mountpoint is marked ready for interaction with 64-bit user processes.

vfs_addname

Deprecated

vfs_authcache_ttl

Determine the time-to-live of cached authorized credentials for files in this filesystem.

vfs_authopaque

Determine if a filesystem's authorization decisions occur remotely.

vfs_authopaqueaccess

Check if a filesystem is marked as having reliable remote VNOP_ACCESS support.

vfs_busy

"Busy" a mountpoint.

vfs_clearauthcache_ttl

Remove time-to-live controls for cached credentials on a filesytem. Filesystems with remote authorization decisions (opaque) will still have KAUTH_VNODE_SEARCH rights cached for a default of CACHED_LOOKUP_RIGHT_TTL seconds.

vfs_clearauthopaqueaccess

Mark a filesystem as not having remote VNOP_ACCESS support.

vfs_clearextendedsecurity

Mark a filesystem as NOT supporting security controls beyond POSIX permissions.

vfs_clearflags

Clear flags on a mount.

vfs_context_create

Create a new vfs_context_t with appropriate references held.

vfs_context_current

Get the vfs_context for the current thread, or the kernel context if there is no context for current thread.

vfs_context_is64bit

Determine if a vfs_context_t corresponds to a 64-bit user process.

vfs_context_issignal

Get a bitfield of pending signals for the BSD process associated with a vfs_context_t.

vfs_context_pid

Get the process id of the BSD process associated with a vfs_context_t.

vfs_context_proc

Get the BSD process structure associated with a vfs_context_t.

vfs_context_rele

Release references on components of a context and deallocate it.

vfs_context_suser

Determine if a vfs_context_t corresponds to the superuser.

vfs_context_ucred

Get the credential associated with a vfs_context_t.

vfs_devblocksize

Get the block size of the device underlying a mount.

vfs_event_init

This function should not be called by kexts.

vfs_event_signal

Post a kqueue-style event on a filesystem (EVFILT_FS).

vfs_flags

Retrieve mount flags.

vfs_fsadd

Register a filesystem with VFS.

vfs_fsprivate

Get filesystem-private mount data.

vfs_fsremove

Unregister a filesystem with VFS.

vfs_getnewfsid

Generate a unique filesystem ID for a mount and store it in the mount structure.

vfs_getvfs

Given a filesystem ID, look up a mount structure.

vfs_init_io_attributes

Set I/O attributes on a mountpoint based on device properties.

vfs_ioattr

Get I/O attributes associated with a mounpoint.

vfs_isforce

Determine if a forced unmount is in progress.

vfs_isrdonly

Determine if a filesystem is mounted read-only.

vfs_isrdwr

Determine if a filesystem is mounted with writes enabled.

vfs_isreload

Determine if a reload of filesystem data is in progress. This can only be the case for a read-only filesystem; all data is brought in from secondary storage.

vfs_issynchronous

Determine if writes to a filesystem occur synchronously.

vfs_isunmount

Determine if an unmount is in progress.

vfs_isupdate

Determine if a mount update is in progress.

vfs_iswriteupgrade

Determine if a filesystem is mounted read-only but a request has been made to upgrade to read-write.

vfs_iterate

Iterate over all mountpoints with a callback. Used, for example, by sync().

vfs_maxsymlen

Get the maximum length of a symbolic link on a filesystem.

vfs_mountedon

Check whether a given block device has a filesystem mounted on it.

vfs_name

Copy filesystem name into a buffer.

vfs_removename

Deprecated

vfs_rootvnode

Returns the root vnode with an iocount.

vfs_setauthcache_ttl

Enable credential caching and set time-to-live of cached authorized credentials for files in this filesystem.

vfs_setauthopaque

Mark a filesystem as having authorization decisions controlled remotely.

vfs_setauthopaqueaccess

Mark a filesystem as having remote VNOP_ACCESS support.

vfs_setextendedsecurity

Mark a filesystem as supporting security controls beyond POSIX permissions.

vfs_setflags

Set flags on a mount.

vfs_setfsprivate

Set filesystem-private mount data.

vfs_setioattr

Set I/O attributes associated with a mounpoint.

vfs_setlocklocal

Mark a filesystem as using VFS-level advisory locking support.

vfs_setmaxsymlen

Set the maximum length of a symbolic link on a filesystem.

vfs_statfs

Get information about filesystem status.

vfs_typenum

Get (archaic) filesystem type number.

vfs_unbusy

"Unbusy" a mountpoint by releasing its read-write lock.

vfs_unmountbyfsid

Find a filesystem by ID and unmount it.

vfs_update_vfsstat

Update cached filesystem status information in the VFS mount structure.

vn_bwrite

System-provided implementation of "bwrite" vnop.

vn_default_error

Default vnode operation to fill unsupported slots in vnode operation vectors.

vn_getpath

Construct the path to a vnode.

vn_path_package_check

Figure out if a path corresponds to a macOS package.

vn_rdwr

Read from or write to a file.

vn_revoke

Invalidate all references to a vnode.

vnode_addfsref

Mark a vnode as being stored in a filesystem hash.

vnode_authattr

Given a vnode_attr structure, determine what kauth-style actions must be authorized in order to set those attributes.

vnode_authattr_new

Initialize and validate file creation parameters with respect to the current context.

vnode_authorize

Authorize a kauth-style action on a vnode.

vnode_clearfsnode

Sets a vnode's filesystem-specific data to be NULL.

vnode_clearmountedon

Clear flags indicating that a block device vnode has been mounted as a filesystem.

vnode_clearnocache

Clear the flag on a vnode indicating that data should not be cached in memory (i.e. we write-through to disk and always read from disk).

vnode_clearnoreadahead

Clear the flag indicating that a vnode should not have data speculatively read in.

vnode_close

Close a file as opened with vnode_open().

vnode_create

Create and initialize a vnode.

vnode_fsnode

Gets the filesystem-specific data associated with a vnode.

vnode_get

Increase the iocount on a vnode.

vnode_getattr

Get vnode attributes.

vnode_getname

Get the name of a vnode from the VFS namecache.

vnode_getparent

Get an iocount on the parent of a vnode.

vnode_getwithref

Increase the iocount on a vnode on which a usecount (persistent reference) is held.

vnode_getwithvid

Increase the iocount on a vnode, checking that the vnode is alive and has not changed vid (i.e. been recycled)

vnode_hascleanblks

Check if a vnode has clean buffers associated with it.

vnode_hasdirtyblks

Check if a vnode has dirty data waiting to be written to disk.

vnode_isblk

Determine if a vnode is a block device special file.

vnode_ischr

Determine if a vnode is a character device special file.

vnode_isdir

Determine if a vnode is a directory.

vnode_isfifo

Determine if a vnode is a named pipe.

vnode_isinuse

Determine if the number of persistent (usecount) references on a vnode is greater than a given count.

vnode_islnk

Determine if a vnode is a symbolic link.

vnode_ismount

Determine if there is currently a mount occurring which will cover this vnode.

vnode_ismountedon

Determine if a vnode is a block device on which a filesystem has been mounted.

vnode_isnamedstream

Determine if a vnode is a named stream.

vnode_isnocache

Check if a vnode is set to not have its data cached in memory (i.e. we write-through to disk and always read from disk).

vnode_isnoreadahead

Check if a vnode is set to not have data speculatively read in in hopes of future cache hits.

vnode_israge

Check if a vnode is marked for rapid aging

vnode_isrecycled

Check if a vnode is dead or in the process of being killed (recycled).

vnode_isreg

Determine if a vnode is a regular file.

vnode_isswap

Determine if a vnode is being used as a swap file.

vnode_issystem

Determine if a vnode is marked as a System vnode.

vnode_isvroot

Determine if a vnode is the root of its filesystem.

vnode_iterate

Perform an operation on (almost) all vnodes from a given mountpoint.

vnode_lookup

Convert a path into a vnode.

vnode_mount

Get the mount structure for the filesystem that a vnode belongs to.

vnode_mountedhere

Returns a pointer to a mount placed on top of a vnode, should it exist.

vnode_needssnapshots

Check if a vnode needs snapshots events (regardless of its ctime status)

vnode_open

Open a file identified by a path--roughly speaking an in-kernel open(2).

vnode_put

Decrement the iocount on a vnode.

vnode_putname

Release a reference on a name from the VFS cache.

vnode_recycle

Cause a vnode to be reclaimed and prepared for reuse.

vnode_ref

Increment the usecount on a vnode.

vnode_rele

Decrement the usecount on a vnode.

vnode_removefsref

Mark a vnode as no longer being stored in a filesystem hash.

vnode_setattr

Set vnode attributes.

vnode_setmountedon

Set flags indicating that a block device vnode has been mounted as a filesystem.

vnode_setmultipath

Mark a vnode as being reachable by multiple paths, i.e. as a hard link.

vnode_setnocache

Set a vnode to not have its data cached in memory (i.e. we write-through to disk and always read from disk).

vnode_setnoreadahead

Set a vnode to not have data speculatively read in in hopes of hitting in cache.

vnode_settag

Set a vnode filesystem-specific "tag."

vnode_specrdev

Return the device id of the device associated with a special file.

vnode_tag

Get the vnode filesystem-specific "tag."

vnode_uncache_credentials

Clear out cached credentials on a vnode.

vnode_update_identity

Update vnode data associated with the vfs cache.

vnode_vfs64bitready

Determine if the filesystem to which a vnode belongs is marked as ready to interact with 64-bit user processes.

vnode_vfsisrdonly

Determine if the filesystem to which a vnode belongs is mounted read-only.

vnode_vfsmaxsymlen

Determine the maximum length of a symbolic link for the filesystem on which a vnode resides.

vnode_vfsname

Get the name of the filesystem to which a vnode belongs.

vnode_vfstypenum

Get the "type number" of the filesystem to which a vnode belongs.

vnode_vid

Return a vnode's vid (generation number), which is constant from creation until reclaim.

vnode_vtype

Return a vnode's type.

vnode_waitforwrites

Wait for the number of pending writes on a vnode to drop below a target.

vnode_writedone

Decrement the count of pending writes on a vnode .

vsprintfDeprecated
vvexpf

For each single-precision array element, sets y to the exponential of x.

Beta Software

This documentation contains preliminary information about an API or technology in development. This information is subject to change, and software implemented according to this documentation should be tested with final operating system software.

Learn more about using Apple's beta software