RTEMS Logo

RTEMS 4.6.99.3 On-Line Library


unmount

PREV UP NEXT Bookshelf RTEMS Filesystem Design Guide

4.26: unmount

File:

unmount.c

Processing:

This routine will attempt to dismount a mounted filesystem and then free all resources that were allocated for the management of that filesystem.

Development Comments:

If the above preconditions are met then the following sequence is performed:

  1. Call the filesystem specific unmount() function for the filesystem that contains the mount point. This routine should indicate that the mount point no longer has a filesystem mounted below it.
  2. Call the filesystem specific fsunmount_me() function for the mounted filesystem that we are trying to unmount(). This routine should clean up any resources that are no longer needed for the management of the file system being un-mounted.
  3. Extract the mount table entry for the filesystem that was just dismounted from the mount table chain.
  4. Free the memory associated with the extracted mount table entry.


PREV UP NEXT Bookshelf RTEMS Filesystem Design Guide

Copyright © 1988-2004 OAR Corporation