class ScopedMMap

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

void ScopedMMap (const ScopedMMap & )

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

ScopedMMap & operator= (const ScopedMMap & )

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

void ScopedMMap (ScopedMMap && other)

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

void ~ScopedMMap ()

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

ScopedMMap & operator= (ScopedMMap && other)

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

void Unmap ()

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

bool is_valid ()

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

bool operator bool ()

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

void * mapping ()

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