30 #include <rtems/thread.h> 51 typedef void (*rtems_sparse_disk_delete_handler)(rtems_sparse_disk *sparse_disk);
53 struct rtems_sparse_disk {
57 uint32_t media_block_size;
58 rtems_sparse_disk_delete_handler delete_handler;
85 const char *device_file_name,
86 uint32_t media_block_size,
123 const char *device_file_name,
124 rtems_sparse_disk *sparse_disk,
125 uint32_t media_block_size,
128 uint8_t fill_pattern,
129 rtems_sparse_disk_delete_handler sparse_disk_delete
uint32_t rtems_blkdev_bnum
Block device block index type.
Definition: diskdevs.h:45
rtems_status_code rtems_sparse_disk_register(const char *device_file_name, rtems_sparse_disk *sparse_disk, uint32_t media_block_size, rtems_blkdev_bnum blocks_with_buffer, rtems_blkdev_bnum media_block_count, uint8_t fill_pattern, rtems_sparse_disk_delete_handler sparse_disk_delete)
Initializes and registers a sparse disk.
Definition: sparse-disk.c:336
rtems_status_code
Classic API Status.
Definition: status.h:43
void rtems_sparse_disk_free(rtems_sparse_disk *sparse_disk)
Frees a sparse disk.
Definition: sparse-disk.c:301
Definition: sparse-disk.h:53
Block Device Disk Management API.
Definition: sparse-disk.h:44
rtems_status_code rtems_sparse_disk_create_and_register(const char *device_file_name, uint32_t media_block_size, rtems_blkdev_bnum blocks_with_buffer, rtems_blkdev_bnum media_block_count, uint8_t fill_pattern)
Creates and registers a sparse disk.
Definition: sparse-disk.c:306