Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 16 Jul 1999 13:07:40 +0800 (SGT)
From:      Vasudha Ramnath <vasu@krdl.org.sg>
To:        hackers@freebsd.org
Cc:        Vasudha Ramnath <vasu@krdl.org.sg>
Subject:   implementing poll() in a device driver (fwd)
Message-ID:  <Pine.GSO.4.02.9907161305580.7242-100000@boderek>

next in thread | raw e-mail | index | archive | help


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 <vasu@krdl.org.sg>
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




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?Pine.GSO.4.02.9907161305580.7242-100000>