FETCH(9) | Kernel Developer's Manual | FETCH(9) |
fetch
, fubyte
,
fuibyte
, fuiword
,
fulong
, fuulong
,
fuword
— fetch data from
user-space
#include
<sys/types.h>
#include <sys/time.h>
#include <sys/systm.h>
#include
<sys/resourcevar.h>
int
fubyte
(const user_addr_t
addr);
int
fuibyte
(const user_addr_t
addr);
int
fuiword
(user_addr_t addr);
int64_t
fulong
(user_addr_t addr);
uint64_t
fuulong
(user_addr_t addr);
int
fuword
(user_addr_t addr);
The fetch
functions are designed to copy
small amounts of data from user-space.
The fetch
routines provide the following
functionality:
fubyte
()fuibyte
()fuiword
()fulong
()fuulong
()fuword
()The fetch
functions return the data
fetched or -1 on failure.
December 16, 2004 | macOS 15.0 |