RTEMS 7.0-rc1
Loading...
Searching...
No Matches
Data Structures | Macros | Functions | Variables
rtems-fatfs.h File Reference

RTEMS FatFS headers. More...

#include <stdint.h>
#include <string.h>
#include <sys/stat.h>
#include <sys/types.h>
#include <time.h>
#include <rtems/diskdevs.h>
#include <rtems/libio.h>
#include <rtems/seterr.h>
#include "ff.h"

Go to the source code of this file.

Data Structures

struct  fatfs_volume_t
 
struct  rtems_fatfs_posix_cache_entry_t
 
struct  rtems_fatfs_fs_info_t
 
struct  rtems_fatfs_node_t
 

Macros

#define DT_REG   8
 
#define DT_DIR   4
 
#define RTEMS_FATFS_POSIX_CACHE_SIZE   64
 

Functions

int fatfs_diskio_register_device (uint8_t pdrv, const char *device_path)
 
void fatfs_diskio_unregister_device (uint8_t pdrv)
 
int rtems_fatfs_initialize (rtems_filesystem_mount_table_entry_t *mt_entry, const void *data)
 Initialize FatFS filesystem.
 
void rtems_fatfs_fsunmount_me (rtems_filesystem_mount_table_entry_t *mt_entry)
 
void rtems_fatfs_eval_path (rtems_filesystem_eval_path_context_t *ctx)
 
int rtems_fatfs_mknod (const rtems_filesystem_location_info_t *parentloc, const char *name, size_t namelen, mode_t mode, dev_t dev)
 
int rtems_fatfs_rmnod (const rtems_filesystem_location_info_t *parentloc, const rtems_filesystem_location_info_t *loc)
 
int rtems_fatfs_rename (const rtems_filesystem_location_info_t *old_parent_loc, const rtems_filesystem_location_info_t *old_loc, const rtems_filesystem_location_info_t *new_parent_loc, const char *new_name, size_t new_namelen)
 
int rtems_fatfs_utimens (const rtems_filesystem_location_info_t *loc, struct timespec times[2])
 
int rtems_fatfs_statvfs (const rtems_filesystem_location_info_t *root_loc, struct statvfs *sb)
 
bool rtems_fatfs_are_nodes_equal (const rtems_filesystem_location_info_t *a, const rtems_filesystem_location_info_t *b)
 
int rtems_fatfs_clone_node (rtems_filesystem_location_info_t *loc)
 
void rtems_fatfs_free_node (const rtems_filesystem_location_info_t *loc)
 
ssize_t rtems_fatfs_file_read (rtems_libio_t *iop, void *buffer, size_t count)
 
ssize_t rtems_fatfs_file_write (rtems_libio_t *iop, const void *buffer, size_t count)
 
off_t rtems_fatfs_file_lseek (rtems_libio_t *iop, off_t offset, int whence)
 
int rtems_fatfs_file_fstat (const rtems_filesystem_location_info_t *loc, struct stat *buf)
 
int rtems_fatfs_file_ftruncate (rtems_libio_t *iop, off_t length)
 
int rtems_fatfs_file_fsync (rtems_libio_t *iop)
 
ssize_t rtems_fatfs_dir_read (rtems_libio_t *iop, void *buffer, size_t count)
 
int rtems_fatfs_dir_fstat (const rtems_filesystem_location_info_t *loc, struct stat *buf)
 
int rtems_fatfs_opendir (rtems_libio_t *iop, const char *path, int oflag, mode_t mode)
 
int rtems_fatfs_closedir (rtems_libio_t *iop)
 
int rtems_fatfs_openfile (rtems_libio_t *iop, const char *path, int oflag, mode_t mode)
 
int rtems_fatfs_closefile (rtems_libio_t *iop)
 

Variables

const rtems_filesystem_operations_table rtems_fatfs_ops
 
const rtems_filesystem_file_handlers_r rtems_fatfs_file_handlers
 
const rtems_filesystem_file_handlers_r rtems_fatfs_dir_handlers
 

Detailed Description

RTEMS FatFS headers.