fetch(9)

fetch9

Fetch data from user-space

Usage

#include <sys/types.h>

#include <sys/time.h>

#include <sys/systm.h>

#include <sys/resourcevar.h>

int

fubyte(const void *base);

int

fusword(void *base);

int

fuswintr(void *base);

long

fuword(const void *base);

Overview

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.

fusword()

Fetches a short word 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.

fuword()

Fetches a word of data from the user-space address base.

Return values

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

From freebsd-manpages 6.0-5 in Debian 4.0 (Etch). Parsed by carta from the page's mdoc source.