SIMPLE SOLUTIONS

STORE(9FREEBSD) - Linux man page online | System kernel interfaces

Store data to user-space.

Chapter
October 29, 2014
STORE(9) BSD Kernel Developer's Manual STORE(9)

NAME

store, subyte, suswintr, suword — store data to user-space

SYNOPSIS

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

DESCRIPTION

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.

SEE ALSO

copy(9), fetch(9)
BSD October 29, 2014 BSD
This manual Reference Other manuals
store(9freebsd) referred by casueword(9freebsd) | casueword32(9freebsd) | casuword(9freebsd) | casuword32(9freebsd) | copy(9freebsd) | copyin(9freebsd) | copyin_nofault(9freebsd) | copyinstr(9freebsd) | copyout(9freebsd) | copyout_nofault(9freebsd) | copystr(9freebsd) | fetch(9freebsd) | fubyte(9freebsd) | fueword(9freebsd) | fueword32(9freebsd) | fueword64(9freebsd) | fuswintr(9freebsd) | fuword(9freebsd) | fuword16(9freebsd) | fuword32(9freebsd)
refer to copy(9freebsd) | fetch(9freebsd)
Download raw manual
Main page BSD Kernel Developer's Manual (+1909) BSD (+3984) № 9 (+1939)
Go top