qvm_parse_intr()

Parse a guest interrupt specification

Synopsis:

#include <qvm/utils.h>
char* qvm_parse_intr(const struct guest_system *gsp,
                     const char *str,
                     struct guest_intr *ip)

Arguments:

gsp
A pointer to the guest system for which we need the PIC name space.
str
A pointer to a string containing interrupt information to be parsed.
ip
A pointer to a structure to be filled with information about the interrupt.

Description:

See guest_intr for information about the structure. The string is formatted as follows: picname:number. The VM must include the named PIC, which must support sufficient interrupt lines for number to be a valid value. See the (see the Configuration chapter in the User's Guide).

Returns:

A pointer to the first character following the specification referenced by str.