class ScopedMMap

Defined at line 375 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 377 of file ../../src/starnix/tests/syscalls/cpp/test_helper.h

void ScopedMMap (const ScopedMMap & )

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

ScopedMMap & operator= (const ScopedMMap & )

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

void ScopedMMap (ScopedMMap && other)

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

void ~ScopedMMap ()

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

ScopedMMap & operator= (ScopedMMap && other)

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

void Unmap ()

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

bool is_valid ()

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

bool operator bool ()

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

void * mapping ()

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