![]() |
RTEMS 6.1
|
RTEMS File Systems Open. More...
#include <inttypes.h>#include <stdlib.h>#include <string.h>#include <rtems/rfs/rtems-rfs-data.h>#include <rtems/rfs/rtems-rfs-file-system.h>#include <rtems/rfs/rtems-rfs-inode.h>#include <rtems/rfs/rtems-rfs-trace.h>Macros | |
| #define | read_sb(_o) rtems_rfs_read_u32 (sb + (_o)) |
Functions | |
| uint64_t | rtems_rfs_fs_size (rtems_rfs_file_system *fs) |
| uint64_t | rtems_rfs_fs_media_size (rtems_rfs_file_system *fs) |
| int | rtems_rfs_fs_open (const char *name, void *user, uint32_t flags, uint32_t max_held_buffers, rtems_rfs_file_system **fs) |
| int | rtems_rfs_fs_close (rtems_rfs_file_system *fs) |
RTEMS File Systems Open.
Open the file system by reading the superblock and then the group data.
| int rtems_rfs_fs_close | ( | rtems_rfs_file_system * | fs | ) |
Close the file system.
| [in] | fs | is the file system data. |
| 0 | Successful operation. |
| -1 | Error. See errno |
| uint64_t rtems_rfs_fs_media_size | ( | rtems_rfs_file_system * | fs | ) |
The size of the disk in bytes calculated from the media parameters..
| [in] | fs | is a pointer to the file system. |
| int rtems_rfs_fs_open | ( | const char * | name, |
| void * | user, | ||
| uint32_t | flags, | ||
| uint32_t | max_held_buffers, | ||
| rtems_rfs_file_system ** | fs | ||
| ) |
Open the file system given a file path.
| [in] | name | is a pointer to the device to open. |
| [in] | fs | is the file system data filled in by this call. |
| [in] | user | is a pointer to the user data. |
| [in] | flags | is a initial set of user flags for the file system. |
| [in] | max_held_buffers | is the maximum number of buffers the RFS holds. |
| 0 | Successful operation. |
| -1 | Error. See errno |
| uint64_t rtems_rfs_fs_size | ( | rtems_rfs_file_system * | fs | ) |
Return the size of the disk in bytes.
| [in] | fs | is a pointer to the file system. |