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

  • A device can be opened. During the opening of a device, it is initialized and its characteristics are determined (sector size, number of sectors, vendor).

...

  • A device can be partitioned. Partitioning divides the final unallocated portion of the device into two parts, so that a volume could be located on each (see

...

...

  • A device can be low-level formatted. Some device must be low-level formatted before being used.

...

...

  • A device can be (high-level) formatted. (High-level) formatting writes the control information for a file system to a device so that a volume on it can be mounted. Essentially, (high-level) formatting is the process of creating a volume on an empty device or partition.

...

  • A device can be closed. During the closing of a device, it is uninitialized (if necessary) and associated structures are freed.

...

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

Panel

...

borderWidth

...

Function Description
HTML Table
summary
classPlain_Table
Table Row (tr)
Table Cell (td)
Anchor
10481731048173
Table Cell (td)
Anchor
10481751048175
Table Row (tr)
Table Cell (td)
Anchor
10536531053653
0

...

titleTable - Device API functions


Function

Description

FSDev_AccessLock()

td

Anchor
10536551053655

Acquire exclusive access to a device.

Table Row (tr) Table Cell (td) Anchor1053657

1053657

FSDev_AccessUnlock()

Table Cell (td) Anchor10536591053659

Release exclusive access to a device.

tr

Table Cell (td) Anchor10481771048177

FSDev_Close()

Table Cell (td) Anchor1048179

1048179

Remove device from file system.

Table Row (tr) Table Cell (td) Anchor10481811048181

FSDev_GetNbrPartitions()

Table Cell (td) Anchor10481831048183

Get number of partitions on a device.

Table Row (tr) Table Cell (td) Anchor10537741053774

FSDev_Invalidate()

Table Cell (td) Anchor10537761053776

Invalidate files and volumes open on a device.

tr

Table Cell (td) Anchor10481851048185

FSDev_IO_Ctrl()

Table Cell (td)anchor1048187

1048187

Perform device I/O control operation.

Table Row (tr) Table Cell (td) Anchor10481891048189

FSDev_Open()

Table Cell (td) Anchor10481911048191

Add device to file system.

Table Row (tr)td

Anchor10481931048193

FSDev_PartitionAdd()

Table Cell (td) Anchor10481951048195

Add partition to device.

Table Row (tr) Table Cell (td) Anchor10481971048197

FSDev_PartitionFind()

td

Anchor10481991048199

Find partition on device and get information about partition.

tr

Table Cell (td) Anchor10482011048201

FSDev_PartitionInit()

Table Cell (td) Anchor10482031048203

Initialize partition on device.

tr

Table Cell (td) Anchor10482051048205

FSDev_Query()

Table Cell (td) Anchor1048207

1048207

Get device information.

Table Row (tr) Table Cell (td) Anchor10482091048209

FSDev_Rd()

Table Cell (td) Anchor10482111048211

Read sector on device.

Table Row (tr) Table Cell (td)anchor1048213

1048213

FSDev_Refresh()

Table Cell (td) Anchor10482151048215

Refresh device in file system.

Table Row (tr) Table Cell (td) Anchor10482171048217

FSDev_Wr()

Table Cell (td)anchor1048219

1048219

Write sector on device.

...