fuword(9) fetch data from user-space

Other Alias

fetch, fubyte, fuswintr, fuword16, fuword32, fuword64

SYNOPSIS

In sys/types.h In sys/time.h In sys/systm.h Ft int Fn fubyte const void *base Ft long Fn fuword const void *base Ft int Fn fuword16 void *base Ft int32_t Fn fuword32 const void *base Ft int64_t Fn fuword64 const void *base In sys/resourcevar.h Ft int Fn fuswintr void *base

DESCRIPTION

The functions are designed to copy small amounts of data from user-space.

The routines provide the following functionality:

Fn fubyte
Fetches a byte of data from the user-space address base
Fn fuword
Fetches a word of data from the user-space address base
Fn fuword16
Fetches 16 bits of data from the user-space address base
Fn fuword32
Fetches 32 bits of data from the user-space address base
Fn fuword64
Fetches 64 bits of data from the user-space address base
Fn 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 functions return the data fetched or -1 on failure.