示例#1
0
static void
checkport(int start, int end)
{
	if(iounused(start, end))
		return;
	error(Eperm);
}
示例#2
0
static void checkport(int start, int end)
{
	/* standard vga regs are OK */
	if (start >= 0x2b0 && end <= 0x2df + 1)
		return;
	if (start >= 0x3c0 && end <= 0x3da + 1)
		return;

	if (iounused(start, end))
		return;
	error(EPERM, NULL);
}