RTEMS Logo

RTEMS 4.9.5 On-Line Library


Mapping of Generic System Calls to Filesystem Specific Functions

PREV UP NEXT Bookshelf RTEMS Filesystem Design Guide

5.3.1: Mapping of Generic System Calls to Filesystem Specific Functions

The list of generic system calls includes the routines open(), read(), write(), close(), etc..

The Files and Directories section of the POSIX Application Programs Interface specifies a set of functions with calling arguments that are used to gain access to the information in a filesystem. To the application program, these functions allow access to information in any mounted filesystem without explicit knowledge of the filesystem type or the filesystem mount configuration. The following are functions that are provided to the application:

  1. access()
  2. chdir()
  3. chmod()
  4. chown()
  5. close()
  6. closedir()
  7. fchmod()
  8. fcntl()
  9. fdatasync()
  10. fpathconf()
  11. fstat()
  12. fsync()
  13. ftruncate()
  14. link()
  15. lseek()
  16. mkdir()
  17. mknod()
  18. mount()
  19. open()
  20. opendir()
  21. pathconf()
  22. read()
  23. readdir()
  24. rewinddir()
  25. rmdir()
  26. rmnod()
  27. scandir()
  28. seekdir()
  29. stat()
  30. telldir()
  31. umask()
  32. unlink()
  33. unmount()
  34. utime()
  35. write()

The filesystem's type as well as the node type within the filesystem determine the nature of the processing that must be performed for each of the functions above. The RTEMS filesystem provides a framework that allows new filesystem to be developed and integrated without alteration to the basic framework.

To provide the functional switching that is required, each of the POSIX file and directory functions have been implemented as a shell function. The shell function adheres to the POSIX interface standard. Within this functional shell, filesystem and node type information is accessed which is then used to invoke the appropriate filesystem and node type specific routine to process the POSIX function call.


PREV UP NEXT Bookshelf RTEMS Filesystem Design Guide

Copyright © 1988-2008 OAR Corporation