fetch, fubyte,
- Provided by: freebsd-manpages (Version: 11.1-3)
- Report a bug
#include
<sys/types.h>
#include <sys/systm.h>
int
fubyte(volatile
const void *base);
long
fuword(volatile
const void *base);
int
fuword16(volatile
const void *base);
int32_t
fuword32(volatile
const void *base);
int64_t
fuword64(volatile
const void *base);
long
fueword(volatile
const void *base, long
*val);
int32_t
fueword32(volatile
const void *base, int32_t
*val);
int64_t
fueword64(volatile
const void *base, int64_t
*val);
#include
<sys/resourcevar.h>
int
fuswintr(void
*base);
The fetch functions are designed to copy
small amounts of data from user-space of the current process. If read is
successful, it is performed atomically. The data read must be naturally
aligned.
The fetch routines provide the following
functionality:
fubyte()fuword()fuword16()fuword32()fuword64()fuswintr()fueword()fueword32()fueword64()The callers of
fuword(),
fuword32()
and
fuword64()
functions cannot distinguish between -1 read from userspace and function
failure.
The fubyte(),
fuword(), fuword16(),
fuword32(), fuword64(), and
fuswintr() functions return the data fetched or -1
on failure. The fueword(),
fueword32() and fueword64()
functions return 0 on success and -1 on failure.