vga_getcardinfo - Man Page

returns pointer to information about the video card.


#include <vga.h>

vga_cardinfo *vga_getcardinfo(void);


The function returns a pointer to a card information structure which is filled out with details about the video card in use.

#include <vga.h> defines vga_cardinfo as

typedef struct {
    int version;
    int size;
    int chipset;
    int physmem;
    int physmemsize;
    int linearmem;
} vga_cardinfo;

The fields meaning in detail:

Basic mode details


Version of the information structure. Application can use this field to make sure the data it needs is really there.


Size of the cardinfo structure. The structure is malloc()ed, and the program should free  it when no longer needed.


Number of the chispet driver used to drive the card. Same list as is used in the vga_setchipset function.


Physical address of the linear memory aperture of the card. This is needed for example for setting the video overlay of v4l devices.


Amount of physical memory in bytes. (Version >= 0x0200)


Virtual address of the linear memory aperture. Please note that currently it is mapped at vga_init, but in future versions of svgalib this might change. (Version >= 0x0200)

See Also

svgalib(7), libvga.config(5),


This manual page written by Matan Ziv-Av <>.


23 June 2001 Svgalib (>= 1.9.10) Svgalib User Manual