From owner-freebsd-hackers Fri Mar 27 11:31:12 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id LAA22294 for freebsd-hackers-outgoing; Fri, 27 Mar 1998 11:31:12 -0800 (PST) (envelope-from owner-freebsd-hackers@FreeBSD.ORG) Received: from alpo.whistle.com (alpo.whistle.com [207.76.204.38]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id LAA22263 for ; Fri, 27 Mar 1998 11:31:06 -0800 (PST) (envelope-from julian@whistle.com) Received: (from daemon@localhost) by alpo.whistle.com (8.8.5/8.8.5) id LAA24685; Fri, 27 Mar 1998 11:24:39 -0800 (PST) Received: from current1.whistle.com(207.76.205.22) via SMTP by alpo.whistle.com, id smtpd024674; Fri Mar 27 19:24:33 1998 Date: Fri, 27 Mar 1998 11:19:46 -0800 (PST) From: Julian Elischer To: Alexander Tatmaniants cc: freebsd-hackers@FreeBSD.ORG Subject: Re: 2.2.6-stable & devfs & sysmouse ? In-Reply-To: Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG devfs is functioanl but not very useful in 2.2.6 it needs changes that are available as patches to -current (including the one you give) On Fri, 27 Mar 1998, Alexander Tatmaniants wrote: > Hi, > > First of all, is devfs useable in 2.2.6-stable? > When should I perform mount itself? > What is meaning of undocumented kernel option DEVFS_ROOT? > And a small patch to syscons to register sysmouse device with > devfs, if should be usefull in order to make moused and X > coexist together, it works fine for me when I perform > mount -t devfs devfs /devs, as man devfs says. > > Index: syscons.c > =================================================================== > RCS file: /src/ncvs/src/sys/i386/isa/syscons.c,v > retrieving revision 1.182.2.31 > diff -u -b -r1.182.2.31 syscons.c > --- syscons.c 1998/02/28 05:16:14 1.182.2.31 > +++ syscons.c 1998/03/27 16:46:25 > @@ -134,7 +134,7 @@ > static scr_stat main_console; > static scr_stat *console[MAXCONS]; > #ifdef DEVFS > -static void *sc_devfs_token[MAXCONS]; > +static void *sc_devfs_token[MAXCONS + 1]; > #endif > scr_stat *cur_console; > static scr_stat *new_scp, *old_scp; > @@ -772,6 +772,9 @@ > for (vc = 0; vc < MAXCONS; vc++) > sc_devfs_token[vc] = devfs_add_devswf(&scdevsw, vc, DV_CHR, UID_ROOT, > GID_WHEEL, 0600, "ttyv%n", vc); > + sc_devfs_token[MAXCONS] = devfs_add_devswf(&scdevsw, SC_MOUSE, DV_CHR, > + UID_ROOT, GID_WHEEL, 0600, > + "sysmouse"); > #endif > return 0; > } > > > > To Unsubscribe: send mail to majordomo@FreeBSD.org > with "unsubscribe freebsd-hackers" in the body of the message > To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message