RTEMS Logo

RTEMS 4.6.99.3 On-Line Library


Directory Handler Table Functions

PREV UP NEXT Bookshelf RTEMS Filesystem Design Guide

6.4.3: Directory Handler Table Functions

  • IMFS_dir_open() for Directories
  • IMFS_dir_close() for Directories
  • IMFS_dir_read() for Directories
  • No write() for Directories
  • No ioctl() for Directories
  • IMFS_dir_lseek() for Directories
  • IMFS_dir_fstat() for Directories
  • IMFS_fchmod() for Directories
  • No ftruncate() for Directories
  • No fpathconf() for Directories
  • No fsync() for Directories
  • IMFS_fdatasync() for Directories
  • Handler table functions are defined in a rtems_filesystem_file_handlers_r structure. It defines functions that are specific to a node type in a given filesystem. One table exists for each of the filesystem's node types. The structure definition appears below. It is followed by general developmental information on each of the functions associated with directories contained in this function management structure.

    rtems_filesystem_file_handlers_r IMFS_directory_handlers = {
      IMFS_dir_open,
      IMFS_dir_close,
      IMFS_dir_read,
      NULL,             /* write */
      NULL,             /* ioctl */
      IMFS_dir_lseek,
      IMFS_dir_fstat,
      IMFS_fchmod,
      NULL,             /* ftruncate */
      NULL,             /* fpathconf */
      NULL,             /* fsync */
      IMFS_fdatasync,
      IMFS_fcntl
    };
    


    PREV UP NEXT Bookshelf RTEMS Filesystem Design Guide

    Copyright © 1988-2004 OAR Corporation