20 #if !defined (_RTEMS_RFS_BUFFER_H_) 21 #define _RTEMS_RFS_BUFFER_H_ 33 #if defined (__rtems__) 34 #define RTEMS_RFS_USE_LIBBLOCK 1 40 #if RTEMS_RFS_USE_LIBBLOCK 46 #define rtems_rfs_buffer_io_request rtems_rfs_buffer_bdbuf_request 47 #define rtems_rfs_buffer_io_release rtems_rfs_buffer_bdbuf_release 71 #define rtems_rfs_buffer_io_request rtems_rfs_buffer_deviceio_request 72 #define rtems_rfs_buffer_io_release rtems_rfs_buffer_deviceio_release 114 #define rtems_rfs_buffer_link(_h) (&(_h)->buffer->link) 119 #define rtems_rfs_buffer_data(_h) ((void*)((_h)->buffer->buffer)) 124 #define rtems_rfs_buffer_size(_h) ((_h)->buffer->size) 129 #define rtems_rfs_buffer_bnum(_h) ((_h)->bnum) 134 #define rtems_rfs_buffer_dirty(_h) ((_h)->dirty) 139 #define rtems_rfs_buffer_handle_has_block(_h) ((_h)->buffer ? true : false) 144 #define rtems_rfs_buffer_mark_dirty(_h) ((_h)->dirty = true) 149 #define rtems_rfs_buffer_refs(_h) ((_h)->buffer->references) 154 #define rtems_rfs_buffer_refs_up(_h) ((_h)->buffer->references += 1) 159 #define rtems_rfs_buffer_refs_down(_h) ((_h)->buffer->references -= 1) 205 handle->
dirty =
false;
225 handle->
dirty =
false;
int rtems_rfs_buffer_deviceio_release(rtems_rfs_buffer *handle, bool modified)
ssize_t read(int fd, void *buffer, size_t count)
Definition: read.c:27
uint32_t rtems_blkdev_bnum
Block device block index type.
Definition: diskdevs.h:45
int rtems_rfs_buffer_close(rtems_rfs_file_system *fs)
Definition: rtems-rfs-buffer.c:350
int rtems_rfs_buffer_sync(rtems_rfs_file_system *fs)
Definition: rtems-rfs-buffer.c:379
Definition: rtems-rfs-file-system.h:123
uint32_t rtems_rfs_buffer_block
Definition: rtems-rfs-buffer.h:62
int rtems_rfs_buffer_setblksize(rtems_rfs_file_system *fs, uint32_t size)
Definition: rtems-rfs-buffer.c:414
rtems_rfs_buffer * buffer
Definition: rtems-rfs-buffer.h:107
int rtems_rfs_buffer_handle_release(rtems_rfs_file_system *fs, rtems_rfs_buffer_handle *handle)
Definition: rtems-rfs-buffer.c:201
bool dirty
Definition: rtems-rfs-buffer.h:96
Manages the Trace and Debugging Features of the RTEMS RFS File System.
int rtems_rfs_buffer_deviceio_request(rtems_rfs_file_system *fs, rtems_rfs_buffer_block block, bool read, rtems_rfs_buffer *buffer)
struct rtems_rfs_buffer_handle_t rtems_rfs_buffer_handle
int rtems_rfs_buffer_open(const char *name, rtems_rfs_file_system *fs)
Definition: rtems-rfs-buffer.c:289
Definition: rtems-rfs-buffer.h:63
Definition: rtems-rfs-buffer.h:91
RTEMS File Systems Data Forward Declaration.
rtems_rfs_buffer_block bnum
Definition: rtems-rfs-buffer.h:102
int rtems_rfs_buffers_release(rtems_rfs_file_system *fs)
Definition: rtems-rfs-buffer.c:466
unsigned size
Definition: tte.h:74
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:79
Block Device Buffer Management.
#define NULL
Requests a GPIO pin group configuration.
Definition: bestcomm_api.h:77