RTEMS Logo

RTEMS 4.6.1 On-Line Library


device_open() for Devices

PREV UP NEXT Bookshelf RTEMS Filesystem Design Guide

6.4.4.1: device_open() for Devices

Corresponding Structure Element:

device_open()

Arguments:

rtems_libio_t     *iop,
const char        *pathname,
unsigned32         flag,
unsigned32         mode

File:

deviceio.c

Description:

This routine will use the file control block to locate the node structure for the device.

It will extract the major and minor device numbers from the jnode.

The major and minor device numbers will be used to make a rtems_io_open() function call to open the device driver. An argument list is sent to the driver that contains the file control block, flags and mode information.


PREV UP NEXT Bookshelf RTEMS Filesystem Design Guide

Copyright © 1988-2004 OAR Corporation