LLFIO  v2.00
map_handle.hpp File Reference

Provides map_handle More...

#include "file_handle.hpp"

Classes

class  llfio_v2_xxx::section_handle
 A handle to a source of mapped memory. More...
 
struct  llfio_v2_xxx::construct< section_handle >
 Constructor for section_handle More...
 
class  llfio_v2_xxx::map_handle
 A handle to a memory mapped region of memory, either backed by the system page file or by a section. More...
 
struct  llfio_v2_xxx::map_handle::cache_statistics
 Statistics about the map handle cache. More...
 
struct  llfio_v2_xxx::construct< map_handle >
 Constructor for map_handle More...
 
struct  in_place_attach_detach::traits::disable_attached_for< llfio_v2_xxx::map_handle >
 

Namespaces

 llfio_v2_xxx
 The LLFIO namespace.
 

Functions

std::ostream & llfio_v2_xxx::operator<< (std::ostream &s, const section_handle::flag &v)
 
byte_io_handle::const_buffer_type llfio_v2_xxx::nvram_barrier (byte_io_handle::const_buffer_type req, bool evict=false) noexcept
 
template<class T >
constexpr span< T > llfio_v2_xxx::in_place_attach (map_handle &mh) noexcept
 Declare map_handle as a suitable source for P1631 attached<T>.
 
result< byte_io_handle::registered_buffer_type > llfio_v2_xxx::detail::map_handle_allocate_registered_buffer (size_t &bytes) noexcept
 
void llfio_v2_xxx::swap (section_handle &self, section_handle &o) noexcept
 Swap with another instance.
 
result< section_handle > llfio_v2_xxx::section (file_handle &backing, section_handle::extent_type maximum_size, section_handle::flag _flag) noexcept
 Create a memory section backed by a file. More...
 
result< section_handle > llfio_v2_xxx::section (file_handle &backing, section_handle::extent_type bytes=0) noexcept
 Create a memory section backed by a file. More...
 
result< section_handle > llfio_v2_xxx::section (section_handle::extent_type bytes, const path_handle &dirh=path_discovery::storage_backed_temporary_files_directory(), section_handle::flag _flag=section_handle::flag::read|section_handle::flag::write) noexcept
 Create a memory section backed by an anonymous, managed file. More...
 
result< section_handle::extent_type > llfio_v2_xxx::length (const section_handle &self) noexcept
 Return the current maximum permitted extent of the memory section.
 
result< section_handle::extent_type > llfio_v2_xxx::truncate (section_handle &self, section_handle::extent_type newsize=0) noexcept
 
void llfio_v2_xxx::swap (map_handle &self, map_handle &o) noexcept
 Swap with another instance.
 
result< void > llfio_v2_xxx::close (map_handle &self) noexcept
 Unmap the mapped view.
 
result< map_handle > llfio_v2_xxx::map (map_handle::size_type bytes, bool zeroed=false, section_handle::flag _flag=section_handle::flag::readwrite) noexcept
 
result< map_handle > llfio_v2_xxx::map (section_handle &section, map_handle::size_type bytes=0, map_handle::extent_type offset=0, section_handle::flag _flag=section_handle::flag::readwrite) noexcept
 
map_handle::size_type llfio_v2_xxx::length (const map_handle &self) noexcept
 The size of the memory map. This is the accessible size, NOT the reservation size.
 
result< map_handle::size_type > llfio_v2_xxx::truncate (map_handle &self, map_handle::size_type newsize, bool permit_relocation=false) noexcept
 
map_handle::io_result< map_handle::buffers_type > llfio_v2_xxx::read (map_handle &self, map_handle::io_request< map_handle::buffers_type > reqs, deadline d=deadline()) noexcept
 Read data from the mapped view. More...
 
map_handle::io_result< map_handle::const_buffers_type > llfio_v2_xxx::write (map_handle &self, map_handle::io_request< map_handle::const_buffers_type > reqs, deadline d=deadline()) noexcept
 Write data to the mapped view. More...
 
result< size_t > llfio_v2_xxx::detail::pagesize_from_flags (section_handle::flag _flag) noexcept
 

Detailed Description

Provides map_handle