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 };
Copyright © 1988-2008 OAR Corporation