Date: Tue, 11 Aug 2009 08:58:41 +0200 From: Hans Petter Selasky <hselasky@c2i.net> To: Krassimir Slavchev <krassi@bulinfo.net> Cc: freebsd-hackers@freebsd.org Subject: Re: Help with device drivers Message-ID: <200908110858.41835.hselasky@c2i.net> In-Reply-To: <4A810A62.1070408@bulinfo.net> References: <4A8006F3.5020800@bulinfo.net> <200908101527.32952.hselasky@c2i.net> <4A810A62.1070408@bulinfo.net>
next in thread | previous in thread | raw e-mail | index | archive | help
On Tuesday 11 August 2009 08:06:26 Krassimir Slavchev wrote: > Hans Petter Selasky wrote: > > 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 > > Thanks! > > It seems that sys/dev/usb/storage/urio.c should be fixed too? > > Best Regards > > > --HPS You are right! http://perforce.freebsd.org/chv.cgi?CH=167199 --HPS
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200908110858.41835.hselasky>