From owner-freebsd-hackers Sun Feb 23 19:19:54 1997 Return-Path: Received: (from root@localhost) by freefall.freebsd.org (8.8.5/8.8.5) id TAA21899 for hackers-outgoing; Sun, 23 Feb 1997 19:19:54 -0800 (PST) Received: from alpo.whistle.com (alpo.whistle.com [207.76.204.38]) by freefall.freebsd.org (8.8.5/8.8.5) with ESMTP id TAA21894 for ; Sun, 23 Feb 1997 19:19:51 -0800 (PST) Received: from current1.whistle.com (current1.whistle.com [207.76.205.22]) by alpo.whistle.com (8.8.5/8.8.4) with SMTP id TAA03818; Sun, 23 Feb 1997 19:13:32 -0800 (PST) Message-ID: <331106DC.2781E494@whistle.com> Date: Sun, 23 Feb 1997 19:11:24 -0800 From: Julian Elischer Organization: Whistle Communications X-Mailer: Mozilla 3.0Gold (X11; I; FreeBSD 2.2-CURRENT i386) MIME-Version: 1.0 To: "Brian J. McGovern" CC: patrick collins , hackers@freebsd.org Subject: Re: Driver question on interval execution (polling?) References: <199702240127.UAA04260@spoon.beta.com> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: owner-hackers@freebsd.org X-Loop: FreeBSD.org Precedence: bulk Brian J. McGovern wrote: > > Based on my reading of several device driver books, I am aware of a mechanism > to be able to have the kernel re-enter a particular function after a certain > time period is past. Using this system, you should be able to do your > poll, and then implement the required code so the function will be restarted > some time in the future, and then it should terminate. the calls you want are timeout(9) untimeout(9) tsleep(9) and wakeup(9) not all have man pages yet