DragonFly On-Line Manual Pages

Search: Section:  


FETCH(9)	      DragonFly Kernel Developer's Manual	      FETCH(9)

NAME

fetch, fubyte, fuword32, fuword64 -- fetch data from user-space

SYNOPSIS

#include <sys/types.h> #include <sys/time.h> #include <sys/systm.h> #include <sys/resourcevar.h> int fubyte(const uint8_t *base); int32_t fuword32(const uint32_t *base); int64_t fuword64(const uint64_t *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. fuword32() Fetches 32 bits of data from the user-space address base. fuword64() Fetches 64 bits of data from the user-space address base.

RETURN VALUES

The fetch functions return the data fetched or -1 on failure.

SEE ALSO

copy(9), store(9) DragonFly 5.1 January 26, 2017 DragonFly 5.1

Search: Section: