FSDev_Invalidate()

void  FSDev_Invalidate (CPU_CHAR  *name_dev,
                        FS_ERR    *p_err);

File

Called from

Code enabled by

fs_dev.c

Application

N/A

Invalidate files and volumes opened on a device. See also Raw Device I/O.

Arguments

name_dev

Device name

p_err

Pointer to variable that will receive return error code from this function.

FS_ERR_NONE

Partition added.

FS_ERR_NAME_NULL

Argument name_dev passed a NULL pointer.

Or device access error (see µC/FS Error Codes).

Returned Value

None.

Notes/Warnings

  1. Operations on an affected file or volume will fail with an FS_ERR_DEV_CHNGD error.
  2. Invalidation will happen automatically following a removable media change.