RTEMS Logo

RTEMS 4.9.4 On-Line Library


Regular File Handler Table Functions

PREV UP NEXT Bookshelf RTEMS Filesystem Design Guide

6.4.2: Regular File Handler Table Functions

  • memfile_open() for Regular Files
  • memfile_close() for Regular Files
  • memfile_read() for Regular Files
  • memfile_write() for Regular Files
  • memfile_ioctl() for Regular Files
  • memfile_lseek() for Regular Files
  • IMFS_stat() for Regular Files
  • IMFS_fchmod() for Regular Files
  • memfile_ftruncate() for Regular Files
  • No pathconf() for Regular Files
  • No fsync() for Regular Files
  • IMFS_fdatasync() for Regular Files
  • 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 regular files contained in this function management structure.

    rtems_filesystem_file_handlers_r IMFS_memfile_handlers = {
      memfile_open,
      memfile_close,
      memfile_read,
      memfile_write,
      memfile_ioctl,
      memfile_lseek,
      IMFS_stat,
      IMFS_fchmod,
      memfile_ftruncate,
      NULL,                /* fpathconf */
      NULL,                /* fsync */
      IMFS_fdatasync,
      IMFS_fcntl
    };
    


    PREV UP NEXT Bookshelf RTEMS Filesystem Design Guide

    Copyright © 1988-2008 OAR Corporation