STORE(9) OpenBSD Kernel Manual STORE(9) NAME store - store data to user-space SYNOPSIS #include <sys/types.h> #include <sys/systm.h> int subyte(void *base, unsigned char c); int susword(void *base, unsigned short s); int suswintr(void *base, unsigned short s); int suword(void *base, unsigned long l); DESCRIPTION The store functions are designed to copy small amounts of data to user- space. The store routines provide the following functionality: subyte() Stores a byte of data, c, to the user-space address base. susword() Stores a short word of data, s, to the user-space address base. suswintr() Stores a short word of data, s, to the user-space address base. This function is safe to call during an interrupt con- text. suword() Stores a word of data, l, to the user-space address base. NOTE The store routines are deprecated. All new code should use copyout(). RETURN VALUES The store functions return 0 on success or -1 on failure. SEE ALSO copy(9), fetch(9) OpenBSD 3.2 January 7, 1996 1