copy a character to space described by uio structure
int ureadc(int c, uio_t *uiop);
ureadc copies the character c into the space
described by the
structure pointed to by uiop.
uio_segflg member of the uio structure specifies
the type of space to which the copy is made.
uio_segflg is set to UIO_SYSSPACE the character is
copied to a kernel address.
uio_segflg is set to UIO_USERSPACE the character is
copied to a user address.
If the character is successfully copied, ureadc updates the
appropriate members of the uio and
structures to reflect the copy (
are incremented and
iov_len are decremented).
The character to be copied.
Pointer to the uio structure.
ureadc returns 0 on success or an error number on failure.
Context and synchronization
uio_segflg is set to UIO_USERSPACE.
Non-blockable, interrupt, user, or blockable
uio_segflg is set to UIO_SYSSPACE.
When holding locks across calls to this function,
multithreaded drivers must be careful to avoid creating a deadlock.
During the data transfer, page fault resolution
might result in another I/O to the same device.
For example, this could occur if the driver controls the disk drive
used as the swap device.
1, 2, 3, 4, 5, 5mp, 6, 6mp, 7, 7mp, 7.1, 7.1mp, 8, 8mp
19 June 2005
© 2005 The SCO Group, Inc. All rights reserved.
OpenServer 6 and UnixWare (SVR5) HDK - June 2005