From owner-freebsd-hackers Sat Dec 30 20:49:15 1995 Return-Path: owner-hackers Received: (from root@localhost) by freefall.freebsd.org (8.7.3/8.7.3) id UAA07000 for hackers-outgoing; Sat, 30 Dec 1995 20:49:15 -0800 (PST) Received: from rah.star-gate.com (rah.star-gate.com [204.188.121.18]) by freefall.freebsd.org (8.7.3/8.7.3) with SMTP id UAA06991 for ; Sat, 30 Dec 1995 20:49:07 -0800 (PST) Received: from localhost.v-site.net (localhost.v-site.net [127.0.0.1]) by rah.star-gate.com (8.6.12/8.6.12) with SMTP id UAA00410; Sat, 30 Dec 1995 20:48:11 -0800 Message-Id: <199512310448.UAA00410@rah.star-gate.com> X-Authentication-Warning: rah.star-gate.com: Host localhost.v-site.net didn't use HELO protocol X-Mailer: exmh version 1.6.2 7/18/95 To: Sujal Patel cc: David Dawes , "Jordan K. Hubbard" , hackers@freebsd.org Subject: Re: /dev/io In-reply-to: Your message of "Sat, 30 Dec 1995 23:18:14 EST." Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Date: Sat, 30 Dec 1995 20:48:10 -0800 From: "Amancio Hasty Jr." Sender: owner-hackers@freebsd.org Precedence: bulk >>> Sujal Patel said: > On Sun, 31 Dec 1995, David Dawes wrote: > > > >I think a few X servers would definitely break of /dev/io went away > > >suddently, but I also see no reason why the other interface couldn't > > >be implemented in parallel with a change-over at some point in the > > >future. > > > > For what it's worth, the XFree86 servers get I/O permission by using > > the KDENABIO ioctl in the console driver rather than by opening /dev/io. > > I wasn't even aware that this existed, but looking at the Xserver source > it seems like BSDI, Linux, FreeBSD, and NetBSD all have it (but only > Free/NetBSD use it for Xserver IO permission). > > This makes it even easier to phase out /dev/io, because the Xservers will > not break and the code for iopl() would be very similar to the code for > the KDENABIO ioctl. The only non-trivial thing would be implementing IO > permission bitmaps, but I'm not even sure if it's worth it since it would > be a rarely used feature. > I implemented i/o bitmap permissions way back for 386bsd you may be able to get the original patches if you search minnies mail archive. Yes, I know that the patches would not apply to the current kernel however for anyone interested it would show how it was done. Have fun, Amancio