FAT | RFS | XFS | ZFS

vol_unlock()

PROTOTYPE

#include <posix.h>

void vol_unlock(void *handle);

DESCRIPTION

vol_unlock() is a non-standard routine that undoes the effect of calling vol_lock(), freeing a volume for use by other tasks. handle is the return value of a successful past call to vol_lock(). Any task blocked in an API routine on the locked volume will be unblocked by vol_unlock().

vol_lock() and vol_unlock() support multitasking applications. If a task needs to update a file using multiple writes, these calls ensure those writes are not interleaved with output from other tasks.

EXAMPLE

  /*-------------------------------------------------------------------*/
  /* Unlock volume for use by all tasks.                               */
  /*-------------------------------------------------------------------*/
  vol_unlock(hndl);