SIMPLE SOLUTIONS

FUWORD(9FREEBSD) - man page online | system kernel interfaces

Fetch data from user-space.

Chapter
October 5, 2009
FETCH(9)                          BSD Kernel Developer's Manual                          FETCH(9)

NAME fetch, fubyte, fuswintr, fuword, fuword16, fuword32, fuword64 — fetch data from user-space
SYNOPSIS #include <sys/types.h> #include <sys/time.h> #include <sys/systm.h> int fubyte(const void *base); long fuword(const void *base); int fuword16(void *base); int32_t fuword32(const void *base); int64_t fuword64(const void *base); #include <sys/resourcevar.h> int fuswintr(void *base);
DESCRIPTION The fetch functions are designed to copy small amounts of data from user-space. The fetch routines provide the following functionality: fubyte() Fetches a byte of data from the user-space address base. fuword() Fetches a word of data from the user-space address base. fuword16() Fetches 16 bits of data from the user-space address base. fuword32() Fetches 32 bits of data from the user-space address base. fuword64() Fetches 64 bits of data from the user-space address base. fuswintr() Fetches a short word of data from the user-space address base. This function is safe to call during an interrupt context.
RETURN VALUES The fetch functions return the data fetched or -1 on failure.
SEE ALSO copy(9), store(9)
BSD October 5, 2009 BSD
This manual Reference Other manuals
fuword(9freebsd) referred by mtx_assert(9freebsd) | mtx_destroy(9freebsd) | mtx_init(9freebsd) | mtx_initialized(9freebsd) | mtx_lock(9freebsd) | mtx_lock_flags(9freebsd) | mtx_lock_spin(9freebsd) | mtx_lock_spin_flags(9freebsd) | mtx_owned(9freebsd) | mtx_recursed(9freebsd) | mtx_sleep(9freebsd) | MTX_SYSINIT(9freebsd) | mtx_trylock(9freebsd) | mtx_trylock_flags(9freebsd) | mtx_unlock(9freebsd) | mtx_unlock_flags(9freebsd) | mtx_unlock_spin(9freebsd) | mtx_unlock_spin_flags(9freebsd) | mutex(9freebsd)
refer to copy(9freebsd) | fetch(9freebsd) | store(9freebsd)