fuword.9freebsd

Langue: en

Version: 309412 (debian - 07/07/09)

Section: 9 (Appels noyau Linux)


BSD mandoc

NAME

fetch fubyte fusword fuswintr fuword - fetch data from user-space

SYNOPSIS

In sys/types.h In sys/time.h In sys/systm.h In sys/resourcevar.h Ft int Fn fubyte const void *base Ft int Fn fusword void *base Ft int Fn fuswintr void *base Ft long Fn fuword const 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 fusword
Fetches a short word 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.
Fn fuword
Fetches a word of data from the user-space address base

RETURN VALUES

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

SEE ALSO

copy(9), store(9)