| 99 | } |
| 100 | |
| 101 | inline auto __map_region(int __fd, ::off_t __offset, std::size_t __size) -> memory_mapped_region |
| 102 | { |
| 103 | void* __ptr = |
| 104 | ::mmap(nullptr, __size, PROT_READ | PROT_WRITE, MAP_SHARED | MAP_POPULATE, __fd, __offset); |
| 105 | __throw_error_code_if(__ptr == MAP_FAILED, errno); |
| 106 | return memory_mapped_region{__ptr, __size}; |
| 107 | } |
| 108 | |
| 109 | // This base class maps the Linux kernel's io_uring data structures into the process. |
| 110 | struct __context_base : STDEXEC::__immovable |
no test coverage detected