class ScopedMMap

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

void ScopedMMap (const ScopedMMap & )

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

ScopedMMap & operator= (const ScopedMMap & )

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

void ScopedMMap (ScopedMMap && other)

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

void ~ScopedMMap ()

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

ScopedMMap & operator= (ScopedMMap && other)

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

void Unmap ()

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

bool is_valid ()

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

bool operator bool ()

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

void * mapping ()

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