From owner-freebsd-hackers Tue Jun 12 12:14:44 2001 Delivered-To: freebsd-hackers@freebsd.org Received: from superconductor.rush.net (superconductor.rush.net [208.9.155.8]) by hub.freebsd.org (Postfix) with ESMTP id C5D7137B401 for ; Tue, 12 Jun 2001 12:14:37 -0700 (PDT) (envelope-from bright@superconductor.rush.net) Received: (from bright@localhost) by superconductor.rush.net (8.11.2/8.11.2) id f5CJEHm04842; Tue, 12 Jun 2001 15:14:17 -0400 (EDT) Date: Tue, 12 Jun 2001 15:14:17 -0400 From: Alfred Perlstein To: Anjali Kulkarni Cc: hackers@FreeBSD.ORG Subject: Re: User-Level upcalls Message-ID: <20010612151416.Q1832@superconductor.rush.net> References: <03e201c0f322$e52e2c60$0a64a8c0@indranetworks.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Mailer: Mutt 1.0us In-Reply-To: <03e201c0f322$e52e2c60$0a64a8c0@indranetworks.com>; from anjali@indranetworks.com on Tue, Jun 12, 2001 at 03:04:34PM +0530 X-all-your-base: are belong to us. Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG * Anjali Kulkarni [010612 05:54] wrote: > hi, > > Does any one know how to perform user-level upcalls from kernel > TCP/IP stack? If I wanted to get an upcall every time a data packet > arrived on a socket, how can it be done? Can I use signal handlers > for this? Please wrap lines at 70 characters. Yes, you can erquest that a signal (SIGIO) be sent to you each time an event occurs, take a look at fcntl(2) manpage. -- -Alfred Perlstein [alfred@freebsd.org] Instead of asking why a piece of software is using "1970s technology," start asking why software is ignoring 30 years of accumulated wisdom. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message