gasp_unlock()

Release access to regions of the specified type

Synopsis:

#include <qvm/gasp.h>
int gasp_unlock(struct guest_system *gsp,
                uint16_t type)

Arguments:

gsp
A pointer to a guest system.
type
QST_* value.

Library:

Provided by qvm; no external library is required.

Description:

Use this function to release the guest address space after you finish a task that required you to lock that address space. The address space specified by type can be guest-physical memory (QST_MEMORY) or an I/O port number (QST_X86_IO).

You must call gasp_lock() before using this function.

Returns:

EOK for success; otherwise and error.