Kernel Functions for Drivers ureadc(9F)
NAME
ureadc - add character to a uio structure
SYNOPSIS
#include
#include
int ureadc(int c, uiot *uiop);
INTERFACE LEVEL
Architecture independent level 1 (DI/DKI).
PARAMETERS
c The character added to the uio(9S) structure.
uiop Pointer to the uio(9S) structure.
DESCRIPTION
The ureadc() function transfers the character c into the
address space of the uio(9S) structure pointed to by uiop,
and updates the uio structure as for uiomove(9F).
RETURN VALUES
0 is returned on success and EFAULT on failure.
CONTEXT
The ureadc() function can be called from user, interrupt, or
kernel context.
SEE ALSO
uiomove(9F), uwritec(9F), iovec(9S), uio(9S)
Writing Device Drivers
SunOS 5.11 Last change: 16 Jan 2006 1
|