From mboxrd@z Thu Jan 1 00:00:00 1970 Date: Mon, 21 Jun 1999 23:20:49 -0400 From: jmk@plan9.bell-labs.com jmk@plan9.bell-labs.com Subject: [9fans] Hooking up to a timer in a driver Topicbox-Message-UUID: 990d63f2-eac8-11e9-9e20-41e7f4b1d025 Message-ID: <19990622032049.2CzivhrutfWZIPc4ogiFQYBz27duPNb2QB9sc3ZZL6Y@z> cpane@metamorsw.com: >It looks like if you want to get interrupted you insert a call to your >clock routine inside the clock() function in pc/clock.c. Yes, you can do that. Brazil has slightly generalised this by having a routine which drivers can call to add a function to a linked-list of functions to be called per clock tick, so there are no dependancies in clock.c for the uart, mouse, etc. --jim