suswintr(9freebsd)

suswintr9freebsd

Store data to user-space

Part of store(9freebsd).

Usage

#include <sys/types.h>

#include <sys/time.h>

#include <sys/systm.h>

int

subyte(volatile void *base, int byte);

int

suword(volatile void *base, long word);

int

suword16(volatile void *base, int word);

int

suword32(volatile void *base, int32_t word);

int

suword64(volatile void *base, int64_t word);

#include <sys/resourcevar.h>

int

suswintr(void *base, int word);

Overview

The store functions are designed to copy small amounts of data to user-space. If write is successful, it is performed atomically. The data written must be naturally aligned.

The store routines provide the following functionality:

subyte()

Stores a byte of data to the user-space address base.

suword()

Stores a word of data to the user-space address base.

suword16()

Stores 16 bits of data to the user-space address base.

suword32()

Stores 32 bits of data to the user-space address base.

suword64()

Stores 64 bits of data to the user-space address base.

suswintr()

Stores a short word of data to the user-space address base. This function is safe to call during an interrupt context.

Return values

The store functions return 0 on success or -1 on failure.

Releases

5 releases since Debian 5.0 (Lenny); the text changed 4 times.

  1. 5.0
  2. 6.0
  3. 7
  4. 8
  5. 9

From freebsd-manpages 11.0-1 in Debian 9 (Stretch). Parsed by carta from the page's mdoc source.