RTEMS Logo

RTEMS 4.7.99.2 On-Line Library


Device Handler Table Functions

PREV UP NEXT Bookshelf RTEMS Filesystem Design Guide

6.4.4: Device Handler Table Functions

  • device_open() for Devices
  • device_close() for Devices
  • device_read() for Devices
  • device_write() for Devices
  • device_ioctl() for Devices
  • device_lseek() for Devices
  • IMFS_stat() for Devices
  • IMFS_fchmod() for Devices
  • No ftruncate() for Devices
  • No fpathconf() for Devices
  • No fsync() for Devices
  • No fdatasync() for Devices
  • 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 devices 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_file_handlers_r;
    


    PREV UP NEXT Bookshelf RTEMS Filesystem Design Guide

    Copyright © 1988-2004 OAR Corporation