AFIO  v2.00 late alpha
afio_v2_xxx::section_handle::flag_base Struct Reference

The behaviour of the memory section. More...

#include "map_handle.hpp"

Public Types

enum  enum_type : unsigned {
  none = 0, read = 1 << 0, write = 1 << 1, cow = 1 << 2,
  execute = 1 << 3, nocommit = 1 << 8, prefault = 1 << 9, executable = 1 << 10,
  singleton = 1 << 11, barrier_on_close = 1 << 16, readwrite = (read | write)
}
 

Detailed Description

The behaviour of the memory section.

Member Enumeration Documentation

◆ enum_type

Enumerator
none 

No flags.

read 

Memory views can be read.

write 

Memory views can be written.

cow 

Memory views can be copy on written.

execute 

Memory views can execute code.

nocommit 

Don't allocate space for this memory in the system immediately.

prefault 

Prefault, as if by reading every page, any views of memory upon creation.

executable 

The backing storage is in fact an executable program binary.

singleton 

A single instance of this section is to be shared by all processes using the same backing file.

barrier_on_close 

Maps of this section, if writable, issue a barrier() when destructed blocking until data (not metadata) reaches physical storage.

58  {none = 0, //!< No flags
59  read = 1 << 0, //!< Memory views can be read
60  write = 1 << 1, //!< Memory views can be written
61  cow = 1 << 2, //!< Memory views can be copy on written
62  execute = 1 << 3, //!< Memory views can execute code
63 
64  nocommit = 1 << 8, //!< Don't allocate space for this memory in the system immediately
65  prefault = 1 << 9, //!< Prefault, as if by reading every page, any views of memory upon creation.
66  executable = 1 << 10, //!< The backing storage is in fact an executable program binary.
67  singleton = 1 << 11, //!< A single instance of this section is to be shared by all processes using the same backing file.
68 
69  barrier_on_close = 1 << 16, //!< Maps of this section, if writable, issue a `barrier()` when destructed blocking until data (not metadata) reaches physical storage.
70 
71  // NOTE: IF UPDATING THIS UPDATE THE std::ostream PRINTER BELOW!!!
72 
73  readwrite = (read | write)};
Memory views can be copy on written.
Definition: map_handle.hpp:61
Maps of this section, if writable, issue a barrier() when destructed blocking until data (not metadat...
Definition: map_handle.hpp:69
Memory views can be read.
Definition: map_handle.hpp:59
Prefault, as if by reading every page, any views of memory upon creation.
Definition: map_handle.hpp:65
The backing storage is in fact an executable program binary.
Definition: map_handle.hpp:66
A single instance of this section is to be shared by all processes using the same backing file...
Definition: map_handle.hpp:67
No flags.
Definition: map_handle.hpp:58
Memory views can execute code.
Definition: map_handle.hpp:62
Memory views can be written.
Definition: map_handle.hpp:60
Don&#39;t allocate space for this memory in the system immediately.
Definition: map_handle.hpp:64

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