From owner-freebsd-questions Wed Jul 14 23:58:25 1999 Delivered-To: freebsd-questions@freebsd.org Received: from krdl.org.sg (rodin.krdl.org.sg [192.122.139.27]) by hub.freebsd.org (Postfix) with ESMTP id 80856154EB for ; Wed, 14 Jul 1999 23:58:21 -0700 (PDT) (envelope-from vasu@krdl.org.sg) Received: from mailhost.krdl.org.sg (mailbox.krdl.org.sg [192.122.134.30]) by krdl.org.sg (8.9.3/8.9.3) with ESMTP id PAA08191 for ; Thu, 15 Jul 1999 15:04:47 +0800 (SGT) Received: from boderek (boderek [192.122.135.157]) by mailhost.krdl.org.sg (8.9.3/8.9.3) with SMTP id OAA26561 for ; Thu, 15 Jul 1999 14:57:17 +0800 (SGT) Date: Thu, 15 Jul 1999 14:42:34 +0800 (SGT) From: Vasudha Ramnath X-Sender: vasu@boderek To: freebsd-questions@freebsd.org Subject: implementing poll() in a device driver In-Reply-To: Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG I'm running FreeBSD 3.1-RELEASE. Could someone explain what the poll() function in a device driver should do ? Can it return POLLERR or POLLHUP ? I have a test driver that returns these values from the poll() function. However, the application that called the select() is not getting an error. Instead, the select is returning that the particular file descriptor is, in this case, 'readable' ! Am I missing something ? Any insight appreciated. thank you --Vasudha To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message