aboutsummaryrefslogtreecommitdiffstats
path: root/include/litmus/reservations/polling.h
blob: 230e12b1088ad425dda5d697827a164bcfdf2e1f (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
#ifndef LITMUS_POLLING_RESERVATIONS_H
#define LITMUS_POLLING_RESERVATIONS_H

#include <litmus/reservations/reservation.h>

struct polling_reservation {
	/* extend basic reservation */
	struct reservation res;

	lt_t max_budget;
	lt_t period;
	lt_t deadline;
	lt_t offset;
};

void polling_reservation_init(struct polling_reservation *pres, int use_edf_prio,
	int use_periodic_polling, lt_t budget, lt_t period, lt_t deadline, lt_t offset);

#endif