guest_intr_assign()

Assign a source to an interrupt

Synopsis:

#include <qvm/guest.h>
void guest_intr_assign(guest_intr *gip,
                       guest_intr_assign_type_t type,
                       vdev_t *pic,
                       unsigned pnum)

Arguments:

gip
If non-NULL, this field points to the interrupt structure to fill in.
type
The type of interrupt assignment (see guest_intr_assign_type_t).
pic
A pointer to the interrupt controller vdev structure.
pnum
The pin number being assigned.

Description:

Use this function to assign interrupts for vdevs.

Page updated: