RTEMS Logo

RTEMS 4.9.5 On-Line Library


File Handler Table Functions

PREV UP NEXT Bookshelf RTEMS Filesystem Design Guide

5.4.2: File Handler Table Functions

  • open Handler
  • close Handler
  • read Handler
  • write Handler
  • ioctl Handler
  • lseek Handler
  • fstat Handler
  • fchmod Handler
  • ftruncate Handler
  • fpathconf Handler
  • fsync Handler
  • fdatasync Handler
  • fcntl Handler
  • 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.

    typedef struct {
      rtems_filesystem_open_t           open;
      rtems_filesystem_close_t          close;
      rtems_filesystem_read_t           read;
      rtems_filesystem_write_t          write;
      rtems_filesystem_ioctl_t          ioctl;
      rtems_filesystem_lseek_t          lseek;
      rtems_filesystem_fstat_t          fstat;
      rtems_filesystem_fchmod_t         fchmod;
      rtems_filesystem_ftruncate_t      ftruncate;
      rtems_filesystem_fpathconf_t      fpathconf;
      rtems_filesystem_fsync_t          fsync;
      rtems_filesystem_fdatasync_t      fdatasync;
      rtems_filesystem_fcntl_t          fcntl;
    } rtems_filesystem_file_handlers_r;
    


    PREV UP NEXT Bookshelf RTEMS Filesystem Design Guide

    Copyright © 1988-2008 OAR Corporation