<< Previous | Next >> | |
|
int fat_UnmountDevice( mbr_dev * dev );
Description
- Unmounts all FAT partitions on the given device and unregisters the device from the cache system. This commits all cache entries to the device and prepares the device for power down or removal. The device structure given must have been enumerated with
fat_EnumDevice()
.
- This function was introduced in FAT module version 2.06. Applications using prior versions of the FAT module would call
fat_UnmountPartition()
instead.Parameter
- dev
- Pointer to a FAT device structure to unmount.
Return Value
0
: success.
-EINVAL
: device structure (dev
) is invalid.
-EBUSY
: the device is busy (Only if non-blocking).Library
- FAT.LIB
See Also
- fat_EnumDevice, fat_AutoMount, fat_UnmountPartition
Dynamic C Functions | << Previous | Next >> | rabbit.com |