Date: Mon, 10 Aug 2009 15:27:31 +0200 From: Hans Petter Selasky <hselasky@c2i.net> To: freebsd-hackers@freebsd.org Cc: Krassimir Slavchev <krassi@bulinfo.net> Subject: Re: Help with device drivers Message-ID: <200908101527.32952.hselasky@c2i.net> In-Reply-To: <4A8006F3.5020800@bulinfo.net> References: <4A8006F3.5020800@bulinfo.net>
next in thread | previous in thread | raw e-mail | index | archive | help
On Monday 10 August 2009 13:39:31 Krassimir Slavchev wrote: > If I try to open the device from userland with: > fd = open("/dev/xxx0", O_RDWR) it fails because open() tries to open the > device for reading first and then for writing. There is a bug in the code. If you open using read+write flags, then the FIFO open routine is called two times. The RD+WR check should be moved to the ioctl routine. http://perforce.freebsd.org/chv.cgi?CH=167171 --HPS
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200908101527.32952.hselasky>