Sun Microsystems, Inc.
spacerspacer
spacer   www.sun.com docs.sun.com | | |  
spacer
black dot
   
A   B   C   D   E   F   G   H   I   J   K   L   M   N   O   P   Q   R   S   T   U   V   W   X   Y   Z
    
 
Kernel Functions for Driversureadc(9F)


NAME

 ureadc - add character to a uio structure

SYNOPSIS

 
#include <sys/uio.h>
#include <sys/types.h>
int ureadc(int c, uio_t *uio_p);

INTERFACE LEVEL

 

Architecture independent level 1 (DDI/DKI).

PARAMETERS

 
c
The character added to the uio(9S) structure.
uio_p
Pointer to the uio(9S) structure.

DESCRIPTION

 

ureadc() transfers the character c into the address space of the uio(9S) structure pointed to by uio_p, and updates the uio structure as for uiomove(9F).

RETURN VALUES

 

0 is returned on success and EFAULT on failure.

CONTEXT

 

ureadc() can be called from user or interrupt context.

SEE ALSO

 

uiomove(9F), uwritec(9F), iovec(9S), uio(9S)

Writing Device Drivers


SunOS 5.9Go To TopLast Changed 11 Apr 1991

 
      
      
Copyright 2002 Sun Microsystems, Inc. All rights reserved. Use is subject to license terms.