PS/2 device driver docs

/32767 tif at commlab1.austin.ibm.com
Sat Jun 2 00:34:55 AEST 1990


In article <1517 at dutrun.UUCP> ge at dutlru2.tudelft.nl (Ge van Geldorp) writes:
>Suppose (well, don't suppose, I actually do this) I tell an adapter to
>do something, then go to sleep, to be waken up from an interrupt

I've been told and make the habit of doing it like this:

	disable_interrupts();
	while (need_to_sleep())		/* might be "if" */
		sleep();
	enable_interrupts();

Interrupts are enabled for the duration of the sleep.
--
------		    .--. .- ..- .-..   -.-. .... .- -- -... . .-. .-.. .- .. -.
Paul Chamberlain    IBM VNET: sc30661 at ausvm6	     IBM OTHERNET: tif at doorstop
Austin, TX  78758   ...!cs.utexas.edu!ibmaus!auschs!doorstop.austin.ibm.com!tif
(512) 838-7008		Disclaimer: None of the above are official words of IBM



More information about the Comp.unix.aix mailing list