MCPcopy Create free account
hub / github.com/NVIDIA/stdexec / __map_region

Function __map_region

include/exec/linux/io_uring_context.hpp:101–107  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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

Callers 1

__context_baseMethod · 0.85

Calls 1

__throw_error_code_ifFunction · 0.85

Tested by

no test coverage detected