LLFIO  v2.00
llfio_v2_xxx::symlink_handle::buffers_type Struct Reference

#include "symlink_handle.hpp"

Public Types

using pointer = path_view *
 Type of the pointer to the buffer.
 
using iterator = path_view *
 Type of the iterator to the buffer.
 
using const_iterator = const path_view *
 Type of the iterator to the buffer.
 
using size_type = size_t
 Type of the length of the buffers.
 

Public Member Functions

constexpr buffers_type ()
 Default constructor.
 
constexpr buffers_type (path_view link, symlink_type type=symlink_type::symbolic)
 
 buffers_type (buffers_type &&o) noexcept
 Move constructor.
 
 buffers_type (const buffers_type &)=delete
 No copy construction.
 
buffers_typeoperator= (buffers_type &&o) noexcept
 Move assignment.
 
buffers_typeoperator= (const buffers_type &)=delete
 No copy assignment.
 
constexpr iterator begin () noexcept
 Returns an iterator to the beginning of the buffers.
 
constexpr const_iterator begin () const noexcept
 Returns an iterator to the beginning of the buffers.
 
constexpr const_iterator cbegin () const noexcept
 Returns an iterator to the beginning of the buffers.
 
constexpr iterator end () noexcept
 Returns an iterator to after the end of the buffers.
 
constexpr const_iterator end () const noexcept
 Returns an iterator to after the end of the buffers.
 
constexpr const_iterator cend () const noexcept
 Returns an iterator to after the end of the buffers.
 
path_view path () const noexcept
 The path referenced by the symbolic link.
 
symlink_type type () const noexcept
 The type of the symbolic link.
 

Friends

class symlink_handle
 

Detailed Description

The buffers type used by this handle for reads, which is a single item sequence of path_view.

Warning
Unless you supply your own kernel buffer, you need to keep this around as long as you use the path view, as the path is a view of the original buffer filled by the kernel and the existence of this keeps that original buffer around.

Constructor & Destructor Documentation

◆ buffers_type()

constexpr llfio_v2_xxx::symlink_handle::buffers_type::buffers_type ( path_view  link,
symlink_type  type = symlink_type::symbolic 
)
inlineconstexpr

Constructor

162  : _link(link)
163  , _type(type)
164  {
165  }
virtual result< void > link(const path_handle &base, path_view_type path, deadline d=std::chrono::seconds(30)) noexcept
Links the inode referred to by this open handle to the path specified. The current path of this open ...

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