Seastar
High performance C++ framework for concurrent servers
Public Member Functions | Static Protected Member Functions | Protected Attributes | List of all members
seastar::file_impl Class Referenceabstract
Inheritance diagram for seastar::file_impl:
seastar::layered_file_impl

Public Member Functions

virtual future< size_t > write_dma (uint64_t pos, const void *buffer, size_t len, const io_priority_class &pc)=0
 
virtual future< size_t > write_dma (uint64_t pos, std::vector< iovec > iov, const io_priority_class &pc)=0
 
virtual future< size_t > read_dma (uint64_t pos, void *buffer, size_t len, const io_priority_class &pc)=0
 
virtual future< size_t > read_dma (uint64_t pos, std::vector< iovec > iov, const io_priority_class &pc)=0
 
virtual future< size_t > write_dma (uint64_t pos, const void *buffer, size_t len, const io_priority_class &pc, io_intent *)
 
virtual future< size_t > write_dma (uint64_t pos, std::vector< iovec > iov, const io_priority_class &pc, io_intent *)
 
virtual future< size_t > read_dma (uint64_t pos, void *buffer, size_t len, const io_priority_class &pc, io_intent *)
 
virtual future< size_t > read_dma (uint64_t pos, std::vector< iovec > iov, const io_priority_class &pc, io_intent *)
 
virtual future flush (void)=0
 
virtual future< struct stat > stat (void)=0
 
virtual future truncate (uint64_t length)=0
 
virtual future discard (uint64_t offset, uint64_t length)=0
 
virtual future< int > ioctl (uint64_t cmd, void *argp) noexcept
 
virtual future< int > ioctl_short (uint64_t cmd, void *argp) noexcept
 
virtual future< int > fcntl (int op, uintptr_t arg) noexcept
 
virtual future< int > fcntl_short (int op, uintptr_t arg) noexcept
 
virtual future allocate (uint64_t position, uint64_t length)=0
 
virtual future< uint64_t > size (void)=0
 
virtual future close ()=0
 
virtual std::unique_ptr< file_handle_impldup ()
 
virtual subscription< directory_entrylist_directory (std::function< future<>(directory_entry de)> next)=0
 
virtual future< temporary_buffer< uint8_t > > dma_read_bulk (uint64_t offset, size_t range_size, const io_priority_class &pc)=0
 
virtual future< temporary_buffer< uint8_t > > dma_read_bulk (uint64_t offset, size_t range_size, const io_priority_class &pc, io_intent *)
 

Static Protected Member Functions

static file_implget_file_impl (file &f)
 

Protected Attributes

unsigned _memory_dma_alignment = 4096
 
unsigned _disk_read_dma_alignment = 4096
 
unsigned _disk_write_dma_alignment = 4096
 
unsigned _disk_overwrite_dma_alignment = 4096
 
unsigned _read_max_length = 1u << 30
 
unsigned _write_max_length = 1u << 30
 

The documentation for this class was generated from the following file: