DOKK / manpages / debian 10 / freebsd-manpages / suword64.9freebsd.en
STORE(9) Kernel Developer's Manual STORE(9)

store, subyte, suwordstore data to user-space

#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>

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:

()
Stores a byte of data to the user-space address base.
()
Stores a word of data to the user-space address base.
()
Stores 16 bits of data to the user-space address base.
()
Stores 32 bits of data to the user-space address base.
()
Stores 64 bits of data to the user-space address base.

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

copy(9), fetch(9)

April 17, 2018 Debian