From owner-freebsd-hackers Thu Jul 15 22:24:36 1999 Delivered-To: freebsd-hackers@freebsd.org Received: from krdl.org.sg (rodin.krdl.org.sg [192.122.139.27]) by hub.freebsd.org (Postfix) with ESMTP id 0C67414C59 for ; Thu, 15 Jul 1999 22:24:32 -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 NAA01999 for ; Fri, 16 Jul 1999 13:29:54 +0800 (SGT) Received: from boderek (boderek [192.122.135.157]) by mailhost.krdl.org.sg (8.9.3/8.9.3) with SMTP id NAA27050; Fri, 16 Jul 1999 13:22:22 +0800 (SGT) Date: Fri, 16 Jul 1999 13:07:40 +0800 (SGT) From: Vasudha Ramnath X-Sender: vasu@boderek To: hackers@freebsd.org Cc: Vasudha Ramnath Subject: implementing poll() in a device driver (fwd) 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 Got no response from freebsd-questions. can anyone here help ? Please cc your reply to my email a/c. thanks --Vasudha ---------- Forwarded message ---------- Date: Thu, 15 Jul 1999 14:42:34 +0800 (SGT) From: Vasudha Ramnath To: freebsd-questions@freebsd.org Subject: implementing poll() in a device driver 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 To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message