RTEMS Logo

RTEMS 4.9.5 On-Line Library


device_read() for Devices

PREV UP NEXT Bookshelf RTEMS Filesystem Design Guide

6.4.4.3: device_read() for Devices

Corresponding Structure Element:

device_read()

Arguments:

rtems_libio_t     *iop,
void              *buffer,
unsigned32         count

File:

deviceio.c

Description:

This routine will extract the major and minor numbers for the device from the - jnode- associated with the file descriptor.

A rtems_io_read() call will be made to the device driver associated with the file descriptor. The major and minor device number will be sent as arguments as well as an argument list consisting of:

On return from the rtems_io_read() the number of bytes that were actually read will be returned to the calling program.


PREV UP NEXT Bookshelf RTEMS Filesystem Design Guide

Copyright © 1988-2008 OAR Corporation