RTEMS Logo

RTEMS 4.7.2 On-Line Library


IMFS_dir_open() for Directories

PREV UP NEXT Bookshelf RTEMS Filesystem Design Guide

6.4.3.1: IMFS_dir_open() for Directories

Corresponding Structure Element:

imfs_dir_open()

Arguments:

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

File:

imfs_directory.c

Description:

This routine will look into the file control block to find the jnode that is associated with the directory.

The routine will verify that the node is a directory. If its not a directory an error code will be returned.

If it is a directory, the offset in the file control block will be set to 0. This allows us to start reading at the beginning of the directory.


PREV UP NEXT Bookshelf RTEMS Filesystem Design Guide

Copyright © 1988-2004 OAR Corporation