class ScopedMMap

Defined at line 365 of file ../../src/starnix/tests/syscalls/cpp/test_helper.h

A RRAI classes than handles a memory mapping. The container will ensure the

mapping is destroyed when the object is deleted.

Public Methods

fit::result<int, ScopedMMap> MMap (void * addr, size_t length, int prot, int flags, int fd, off_t offset)

Defined at line 367 of file ../../src/starnix/tests/syscalls/cpp/test_helper.h

void ScopedMMap (const ScopedMMap & )

Defined at line 377 of file ../../src/starnix/tests/syscalls/cpp/test_helper.h

ScopedMMap & operator= (const ScopedMMap & )

Defined at line 378 of file ../../src/starnix/tests/syscalls/cpp/test_helper.h

void ScopedMMap (ScopedMMap && other)

Defined at line 380 of file ../../src/starnix/tests/syscalls/cpp/test_helper.h

void ~ScopedMMap ()

Defined at line 384 of file ../../src/starnix/tests/syscalls/cpp/test_helper.h

ScopedMMap & operator= (ScopedMMap && other)

Defined at line 386 of file ../../src/starnix/tests/syscalls/cpp/test_helper.h

void Unmap ()

Defined at line 394 of file ../../src/starnix/tests/syscalls/cpp/test_helper.h

bool is_valid ()

Defined at line 401 of file ../../src/starnix/tests/syscalls/cpp/test_helper.h

bool operator bool ()

Defined at line 403 of file ../../src/starnix/tests/syscalls/cpp/test_helper.h

void * mapping ()

Defined at line 405 of file ../../src/starnix/tests/syscalls/cpp/test_helper.h