Linux and UNIX Man Pages

Linux & Unix Commands - Search Man Pages

subyte(9r) [osf1 man page]

subyte(9r)																subyte(9r)

NAME
subyte - General: Writes a byte into user address space SYNOPSIS
int subyte( char *user_dest, char byte ); ARGUMENTS
Specifies the address in user space to write the byte. Specifies the byte to be written. DESCRIPTION
The subyte routine copies 1 byte from the protected kernel address space to the unprotected user address space. RETURN VALUES
Upon successful completion, subyte returns the value 0 (zero). Otherwise, it returns a -1, indicating that the user address specified in user_dest could not be accessed. SEE ALSO
Routines: copyout(9r), copyoutstr(9r), fubyte(9r), fuword(9r), suword(9r) subyte(9r)

Check Out this Related Man Page

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(void *base, int byte); int suword(void *base, long word); int suword16(void *base, int word); int suword32(void *base, int32_t word); int suword64(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. 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 of data to the user-space address base. suword32() Stores 32 bits of of data to the user-space address base. suword64() Stores 64 bits of 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 5, 2009 BSD
Man Page

We Also Found This Discussion For You

1. What is on Your Mind?

Throw my Toys out of the Pram!

Hi Folks, Today hasn't been the best one of my career in IT. I've been a contractor for a major utility company for a number of years, on a number of seperate IT contracts mostly Unix. The company had 10 different flavours of unix and multiple different varsions of most of them. At the... (3 Replies)
Discussion started by: gull04
3 Replies