From mboxrd@z Thu Jan 1 00:00:00 1970 Message-ID: Date: Fri, 25 Mar 2005 13:55:40 -0500 From: jmk@plan9.bell-labs.com To: 9fans@cse.psu.edu Subject: Re: [9fans] tsleep / timer questions In-Reply-To: <20050325183606.GA93332@smp500.sitetronics.com> MIME-Version: 1.0 Content-Type: text/plain; charset="US-ASCII" Content-Transfer-Encoding: 7bit Topicbox-Message-UUID: 2b888cdc-ead0-11e9-9d60-3106f5b1d025 >So, I thought a nifty solution would be to make use of the >rendezvous stuff and call tsleep. But I don't understand how >this should work. When the watchdog is enabled, I need to start >some procedure that never returns. This would be easy in >userland, where I could simply start another thread, but how do >I do this in-kernel. that would be a kproc. look at some of the ether drivers, e.g. ether82557,c which actually has a kproc called 'watchdog'.