Versions Compared

Key

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


Code Block
void  FSDev_AccessLock (CPU_CHAR    *name_dev,

...


                        CPU_INT32U   timeout

...


                        FS_ERR      *p_err);


File

Called from

Code enabled by

fs_dev.c

Application

N/A

Acquire exclusive access to a device. See also section 7-4 “Raw Device IO” Raw Device I/O.

Arguments

name_dev

Device name.

...

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

FS_ERR_NONE

Device removed successfully.

FS_ERR_DEV_NOT_OPEN

Device is not open.

FS_ERR_NAME_NULL

Argument name_dev passed a NULL pointer

FS_ERR_OS_LOCK

Error acquiring device access lock.

FS_ERR_OS_LOCK_TIMEOUT

Time-out waiting for device access lock.

Returned Value

None.

Notes/Warnings

...