Pseudo-device driver & select ??
From: Aziz Kezzou (french.linuxian_at_gmail.com)
Date: 05/26/05
- Previous message: Dag-Erling Smørgrav: "Re: Improving bind 9 for money"
- Next in thread: Aziz Kezzou: "Re: Pseudo-device driver & select ??"
- Maybe reply: Aziz Kezzou: "Re: Pseudo-device driver & select ??"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: Thu, 26 May 2005 16:38:28 -0400 To: freebsd-hackers <freebsd-hackers@freebsd.org>, freebsd-net <freebsd-net@freebsd.org>
Hi all,
I am trying to implement a small kld pseudo-device driver on FreeBSD 5.3 that
behaves just like a socket with regards to the select system call.
Currently, I am using the sample echo pseudo-device driver from
http://www.freebsd.org/doc/en_US.ISO8859-1/books/arch-handbook/driverbasics-char.html
as an example. However, whenever I call select on the file
descriptor of "/dev/echo" it always returns even when there is no data
to be read.
I looked at the socket code and it looks like I need to provide my own
"fo_select" function in the fileops data structure. Am i right ? How
do I do that ? The sample echo pseudo-device driver above uses
"struct cdevsw" instead...
Thanks
-aziz
_______________________________________________
freebsd-hackers@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-hackers
To unsubscribe, send any mail to "freebsd-hackers-unsubscribe@freebsd.org"
- Previous message: Dag-Erling Smørgrav: "Re: Improving bind 9 for money"
- Next in thread: Aziz Kezzou: "Re: Pseudo-device driver & select ??"
- Maybe reply: Aziz Kezzou: "Re: Pseudo-device driver & select ??"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]