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 an interrupt structure to be filled in with information. about the interrupt

Library:

Provided by qvm; no external library is required.

Description:

See guest_intr for information about the structure. The string is formated as follows: pic name:number. The VM must include the named PIC, which must support sufficient interrupt lines for the number to be a valid value. See the "Configuration" chapter in the QNX Hypervisor for Safety 2.0 User's Guide.

Returns:

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