Path: utzoo!utgpu!news-server.csri.toronto.edu!mailrus!uwm.edu!zaphod.mps.ohio-state.edu!swrinde!cs.utexas.edu!romp!auschs!awdprime!commlab1.austin.ibm.com!tif From: tif@commlab1.austin.ibm.com (/32767) Newsgroups: comp.unix.aix Subject: Re: PS/2 device driver docs Keywords: AIX 1.1, device driver Message-ID: <2495@awdprime.UUCP> Date: 1 Jun 90 14:34:55 GMT References: <1517@dutrun.UUCP> Sender: news@awdprime.UUCP Organization: IBM AWD, Austin Lines: 17 In article <1517@dutrun.UUCP> ge@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@ausvm6 IBM OTHERNET: tif@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