shd.h 777 Bytes
Newer Older
Mike Hibler's avatar
Mike Hibler committed
1 2 3 4 5 6
/*
 * EMULAB-COPYRIGHT
 * Copyright (c) 2005 University of Utah and the Flux Group.
 * All rights reserved.
 */

7 8 9 10 11
/*
 * XXX all this should come out of a standard include file, this is just
 * here to get everything to compile.
 */

12
#include <sys/ioctl.h>
13 14 15

struct shd_range {
	u_int32_t start;
16
	u_int32_t end;
17 18 19 20 21 22 23 24
};

struct shd_modinfo {
	int command;		/* init=1, data=2, deinit=3 */
	struct shd_range *buf;	/* range buffer */
	long bufsiz;		/* buffer size (in entries) */
	long retsiz;		/* size of returned data (in entries) */
};
25

26 27 28 29 30 31 32
struct shd_allocinfo {
	struct shd_range *buf;	/* range buffer */
	long bufsiz;		/* buffer size (in entries) */
};

#define SHDGETMODIFIEDRANGES  _IOWR('S', 29, struct shd_modinfo)
#define SHDSETALLOCATEDRANGES _IOWR('S', 30, struct shd_allocinfo)