gf_dev_get_meminfo()

Return information about a device's memory usage

Synopsis:

#include <gf/gf.h>

int gf_dev_get_meminfo( gf_dev_t gdev,
                        gf_mem_info_t * info) ;

Arguments:

gdev
The handle for the graphics device to query. This is the handle acquired by gf_dev_attach().
info
A gf_mem_info_t structure that the function fills in with information (see below).

Library:

gf

Description:

This function fills in a gf_mem_info_t structure with information about a device's memory usage.

The gf_mem_info_t structure contains at least these members:

unsigned total_mem
The total number of bytes available to aperture.
unsigned avail_mem
The number of unallocated bytes available to aperture.

WARNING: Threads should not call this function between calls to gf_draw_begin() and gf_draw_end(), or a deadlock will occur.

Returns:

GF_ERR_OK
Success.
GF_ERR_IODISPLAY
Unable to talk to io-display.

Classification:

QNX Graphics Framework

Safety:
Interrupt handler No
Signal handler No
Thread Yes

See also:

gf_dev_attach()