From owner-freebsd-hackers Fri Nov 21 00:22:13 1997 Return-Path: Received: (from root@localhost) by hub.freebsd.org (8.8.7/8.8.7) id AAA22773 for hackers-outgoing; Fri, 21 Nov 1997 00:22:13 -0800 (PST) (envelope-from owner-freebsd-hackers) Received: from sax.sax.de (sax.sax.de [193.175.26.33]) by hub.freebsd.org (8.8.7/8.8.7) with SMTP id AAA22757 for ; Fri, 21 Nov 1997 00:22:07 -0800 (PST) (envelope-from j@uriah.heep.sax.de) Received: (from uucp@localhost) by sax.sax.de (8.6.12/8.6.12-s1) with UUCP id JAA21827 for hackers@FreeBSD.ORG; Fri, 21 Nov 1997 09:22:06 +0100 Received: (from j@localhost) by uriah.heep.sax.de (8.8.8/8.8.5) id JAA05285; Fri, 21 Nov 1997 09:07:58 +0100 (MET) Message-ID: <19971121090758.JM01376@uriah.heep.sax.de> 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!!) References: <19971120090611.FW37911@uriah.heep.sax.de> X-Mailer: Mutt 0.60_p2-3,5,8-9 Mime-Version: 1.0 X-Phone: +49-351-2012 669 X-PGP-Fingerprint: DC 47 E6 E4 FF A6 E9 8F 93 21 E0 7D F9 12 D6 4E Reply-To: hackers@FreeBSD.ORG In-Reply-To: ; from Jamil J. Weatherbee on Nov 20, 1997 11:41:25 -0800 Sender: owner-freebsd-hackers@FreeBSD.ORG X-Loop: FreeBSD.org Precedence: bulk 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. ;-)