Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Anchor10465141046514 Device Operations Anchor10465151046515The ultimate purpose of a file system device is to hold data. Consequently, two major operations that can occur on a device are the reading and writing of individual sectors. Five additional operations can be performed which affect not just individual sectors, but the whole device: Anchor10469651046965

...

Anchor10465211046521These operations and the corresponding API functions are discussed in this section. For information about using device names, see section 4-2 “μC/FS Device and Volume Names” on page 61. Anchor10501011050101  

...

...

Function

...

Description

...

FSDev_AccessLock()

...

Acquire exclusive access to a device.

...

FSDev_AccessUnlock()

...

...

Release exclusive access to a device.

...

FSDev_Close()

...

...

Remove device from file system.

...

...

FSDev_GetNbrPartitions()

...

...

Get number of partitions on a device.

...

FSDev_Invalidate()

...

...

Invalidate files and volumes open on a device.

...

...

FSDev_IO_Ctrl()

...

Perform device I/O control operation.

...

FSDev_Open()

...

Add device to file system.

...

FSDev_PartitionAdd()

...

Add partition to device.

...

...

FSDev_PartitionFind()

...

...

Find partition on device and get information about partition.

...

...

FSDev_PartitionInit()

...

...

Initialize partition on device.

...

...

FSDev_Query()

...

Get device information.

...

FSDev_Rd()

...

Read sector on device.

...

...

FSDev_Refresh()

...

Refresh device in file system.

...

FSDev_Wr()

...

...

Write sector on device.

...

Table 7-1 Device API functions