summaryrefslogtreecommitdiff
path: root/cpukit/libblock/src/blkdev-imfs.c (follow)
AgeCommit message (Collapse)Author
2020-04-16Canonicalize config.h includeSebastian Huber
Use the following variant which was already used by most source files: #ifdef HAVE_CONFIG_H #include "config.h" #endif
2018-08-07libblock: Add RTEMS_DEPRECATEDSebastian Huber
Close #3358.
2018-05-18libblock: Init deps in rtems_blkdev_create()Sebastian Huber
Update #3358.
2017-07-28Fix IO control request typeSebastian Huber
2017-07-14posix/mmap: Add support for file handler and MAP_ANONKevin Kirspel
Added a mmap file handler to struct _rtems_filesystem_file_handlers_r. Updated each file handler object to support the default mmap handler. Updated mmap() to call the mmap handler for MAP_SHARED. Added a mmap file handler for shm Added support for MAP_ANON in mmap(). Updates #2859
2015-01-27IMFS: Replace node union with individual structSebastian Huber
This reduces the average node size. Add and use IMFS_GENERIC_INITIALIZER().
2014-03-21Change all references of rtems.com to rtems.org.Chris Johns
2013-12-20Filesystem: Use default kqfilter and poll handlerSebastian Huber
2013-12-20Filesystem: Add readv/writev handlersSebastian Huber
The readv() and writev() support was implemented in terms of multiple calls to the read and write handlers. This imposes a problem on device files which use an IO vector as single request entity. For example a low-level network device (e.g. BPF(4)) may use an IO vector to create one frame from multiple protocol layers each with its own IO vector entry.
2012-12-21libblock: Doxygen Enhancement Task #1Mathew Kallada
2012-11-02libblock: DocumentationSebastian Huber
2012-05-31libblock: Simplify disk managementSebastian Huber
Add block_count and media_blocks_per_block to rtems_disk_device. Add and use rtems_disk_init_phys() and rtems_disk_init_log().
2012-05-31libblock: Remove const qualifier from bdbuf APISebastian Huber
This allows addtion of per disk statistics for example.
2012-05-15Filesystem: PR1255: Move offset update to handlersSebastian Huber
It is now the responsibility of the read() and write() handler to update the offset field of the IO descriptor (rtems_libio_t). This change makes it possible to protect the IO descriptor from concurrent access by per file locks.
2012-05-11Filesystem: PR1398: Fix lseek() mechanicSebastian Huber
According to POSIX the lseek() function shall not, by itself, extend the size of a file. Remove the size field of rtems_libio_t. A file has only one size but may have multiple open file descriptors. Thus a file size field in the file descriptor may lead to inconsistencies. New default handlers rtems_filesystem_default_lseek_file() and rtems_filesystem_default_lseek_directory().
2012-04-12libblock: Add rtems_bdbuf_set_block_size()Sebastian Huber
The new function rtems_bdbuf_set_block_size() must be used to set the block size of a disk device. It will check if the block size is valid and set the new fields block_to_media_block_shift and bds_per_group of the rtems_disk_device structure. This helps to avoid complex arithmetic operations in the block device buffer get and read path.
2012-03-13libblock: Add generic IMFS block device nodesSebastian Huber
New functions o rtems_blkdev_create(), and o rtems_blkdev_create_partition(). New test libtests/block11.