class ScopedMMap

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

An RAII class that 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 368 of file ../../src/starnix/tests/syscalls/cpp/test_helper.h

void ScopedMMap (const ScopedMMap & )

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

ScopedMMap & operator= (const ScopedMMap & )

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

void ScopedMMap (ScopedMMap && other)

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

void ~ScopedMMap ()

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

ScopedMMap & operator= (ScopedMMap && other)

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

void Unmap ()

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

bool is_valid ()

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

bool operator bool ()

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

void * mapping ()

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