RTEMS CPU Kit with SuperCore  4.11.3
Typedefs | Functions

RTEMS File System Mutex. More...

#include <errno.h>
#include <rtems/rfs/rtems-rfs-trace.h>
Include dependency graph for rtems-rfs-mutex.h:

Go to the source code of this file.

Typedefs

typedef uint32_t rtems_rfs_mutex
 RFS Mutex type.
 

Functions

int rtems_rfs_mutex_create (rtems_rfs_mutex *mutex)
 Create the mutex. More...
 
int rtems_rfs_mutex_destroy (rtems_rfs_mutex *mutex)
 Destroy the mutex. More...
 

Detailed Description

RTEMS File System Mutex.

RTEMS File System Mutex.

It may be suprising we abstract this for the RTEMS file system but this code is designed to be run on host operating systems.

Function Documentation

◆ rtems_rfs_mutex_create()

int rtems_rfs_mutex_create ( rtems_rfs_mutex mutex)

Create the mutex.

Parameters
[in]mutexis pointer to the mutex handle returned to the caller.
Return values
0Successful operation.
EIOAn error occurred.

References rtems_build_name, rtems_rfs_trace(), rtems_semaphore_create(), and RTEMS_SUCCESSFUL.

◆ rtems_rfs_mutex_destroy()

int rtems_rfs_mutex_destroy ( rtems_rfs_mutex mutex)

Destroy the mutex.

Parameters
[in]mutexReference to the mutex handle returned to the caller.
Return values
0Successful operation.
EIOAn error occurred.

References rtems_rfs_trace(), rtems_semaphore_delete(), and RTEMS_SUCCESSFUL.

Referenced by rtems_rfs_rtems_shutdown().