From owner-freebsd-hackers Tue Mar 23 12:12:25 1999 Delivered-To: freebsd-hackers@freebsd.org Received: from herring.nlsystems.com (nlsys.demon.co.uk [158.152.125.33]) by hub.freebsd.org (Postfix) with ESMTP id 4FD4414C4F for ; Tue, 23 Mar 1999 12:12:16 -0800 (PST) (envelope-from dfr@nlsystems.com) Received: from localhost (dfr@localhost) by herring.nlsystems.com (8.9.3/8.8.8) with ESMTP id UAA78895; Tue, 23 Mar 1999 20:15:51 GMT (envelope-from dfr@nlsystems.com) Date: Tue, 23 Mar 1999 20:15:51 +0000 (GMT) From: Doug Rabson To: Nick Hibma Cc: FreeBSD hackers mailing list Subject: Re: scheduling a function call from int routines In-Reply-To: Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG On Tue, 23 Mar 1999, Nick Hibma wrote: > > I want to schedule a function call from an interrupt routine. How do I > do that? timeout? > > As in, a USB returns in an interrupt the message the fact that the > connection status of one of the ports or suspend status has changed. I > cannot start checking the ports from that interrupt routine, because I > need to transfer data to the device to make that work. > > thanks. I think you need a kernel thread, either spawned during system startup or via a system call from usbd. -- Doug Rabson Mail: dfr@nlsystems.com Nonlinear Systems Ltd. Phone: +44 181 442 9037 To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message