aboutsummaryrefslogtreecommitdiffstats
path: root/irq.c
blob: 71eaa05df53fa00b3ab2e7fb2d4b340aa2eb3b59 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
#include "kvm/irq.h"
#include "kvm/kvm-arch.h"

static u8 next_line = KVM_IRQ_OFFSET;

int irq__alloc_line(void)
{
	return next_line++;
}

int irq__get_nr_allocated_lines(void)
{
	return next_line - KVM_IRQ_OFFSET;
}