39#if !defined (_RTEMS_RFS_BUFFER_H_)
40#define _RTEMS_RFS_BUFFER_H_
52#if defined (__rtems__)
53#define RTEMS_RFS_USE_LIBBLOCK 1
59#if RTEMS_RFS_USE_LIBBLOCK
65#define rtems_rfs_buffer_io_request rtems_rfs_buffer_bdbuf_request
66#define rtems_rfs_buffer_io_release rtems_rfs_buffer_bdbuf_release
90#define rtems_rfs_buffer_io_request rtems_rfs_buffer_deviceio_request
91#define rtems_rfs_buffer_io_release rtems_rfs_buffer_deviceio_release
133#define rtems_rfs_buffer_link(_h) (&(_h)->buffer->link)
138#define rtems_rfs_buffer_data(_h) ((void*)((_h)->buffer->buffer))
143#define rtems_rfs_buffer_size(_h) ((_h)->buffer->size)
148#define rtems_rfs_buffer_bnum(_h) ((_h)->bnum)
153#define rtems_rfs_buffer_dirty(_h) ((_h)->dirty)
158#define rtems_rfs_buffer_handle_has_block(_h) ((_h)->buffer ? true : false)
163#define rtems_rfs_buffer_mark_dirty(_h) ((_h)->dirty = true)
168#define rtems_rfs_buffer_refs(_h) ((_h)->buffer->references)
173#define rtems_rfs_buffer_refs_up(_h) ((_h)->buffer->references += 1)
178#define rtems_rfs_buffer_refs_down(_h) ((_h)->buffer->references -= 1)
224 handle->
dirty =
false;
244 handle->
dirty =
false;
Block Device Buffer Management.
#define NULL
Requests a GPIO pin group configuration.
Definition: xil_types.h:54
uint32_t rtems_blkdev_bnum
Block device block index type.
Definition: diskdevs.h:45
int rtems_rfs_buffer_handle_request(rtems_rfs_file_system *fs, rtems_rfs_buffer_handle *handle, rtems_rfs_buffer_block block, bool read)
Definition: rtems-rfs-buffer.c:98
int rtems_rfs_buffers_release(rtems_rfs_file_system *fs)
Definition: rtems-rfs-buffer.c:485
uint32_t rtems_rfs_buffer_block
Definition: rtems-rfs-buffer.h:81
int rtems_rfs_buffer_deviceio_release(rtems_rfs_buffer *handle, bool modified)
struct rtems_rfs_buffer_handle_t rtems_rfs_buffer_handle
int rtems_rfs_buffer_handle_release(rtems_rfs_file_system *fs, rtems_rfs_buffer_handle *handle)
Definition: rtems-rfs-buffer.c:220
int rtems_rfs_buffer_setblksize(rtems_rfs_file_system *fs, uint32_t size)
Definition: rtems-rfs-buffer.c:433
int rtems_rfs_buffer_deviceio_request(rtems_rfs_file_system *fs, rtems_rfs_buffer_block block, bool read, rtems_rfs_buffer *buffer)
int rtems_rfs_buffer_sync(rtems_rfs_file_system *fs)
Definition: rtems-rfs-buffer.c:398
int rtems_rfs_buffer_close(rtems_rfs_file_system *fs)
Definition: rtems-rfs-buffer.c:369
int rtems_rfs_buffer_open(const char *name, rtems_rfs_file_system *fs)
Definition: rtems-rfs-buffer.c:308
RTEMS File Systems Data Forward Declaration.
Manages the Trace and Debugging Features of the RTEMS RFS File System.
This structure represents a chain node.
Definition: chain.h:78
Definition: rtems-rfs-buffer.h:83
Definition: rtems-rfs-file-system.h:135
Definition: rtems-rfs-buffer.h:111
rtems_rfs_buffer * buffer
Definition: rtems-rfs-buffer.h:126
bool dirty
Definition: rtems-rfs-buffer.h:115
rtems_rfs_buffer_block bnum
Definition: rtems-rfs-buffer.h:121