Date: Fri, 21 Nov 1997 09:07:58 +0100 From: j@uriah.heep.sax.de (J Wunsch) To: hackers@FreeBSD.ORG Subject: Re: vnode.h and IO_NDELAY (help!!) Message-ID: <19971121090758.JM01376@uriah.heep.sax.de> In-Reply-To: <Pine.BSF.3.96.971120113458.1864C-100000@trojanhorse.ml.org>; from Jamil J. Weatherbee on Nov 20, 1997 11:41:25 -0800 References: <19971120090611.FW37911@uriah.heep.sax.de> <Pine.BSF.3.96.971120113458.1864C-100000@trojanhorse.ml.org>
next in thread | previous in thread | raw e-mail | index | archive | help
As Jamil J. Weatherbee wrote: > > Also, don't forget that you need to allow the FIONBIO ioctl command. > > ... But about the > FIONBIO call, I don't see what you are saying. Why would I need to > support that, I thought that that would be intercepted at the vnode level? You need to ensure that the ioctl routine of your driver doesn't reject this ioctl command, i.e. it must not return ENOTTY or another error for it. Here's mine from the future rtc.c: static int rtcioctl(dev_t dev, int cmd, caddr_t data, int flag, struct proc *p) { int rv = 0; switch (cmd) { case FIONBIO: break; default: rv = ENOTTY; } return rv; } -- cheers, J"org joerg_wunsch@uriah.heep.sax.de -- http://www.sax.de/~joerg/ -- NIC: JW11-RIPE Never trust an operating system you don't have sources for. ;-)
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?19971121090758.JM01376>