Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 27 Mar 1998 11:19:46 -0800 (PST)
From:      Julian Elischer <julian@whistle.com>
To:        Alexander Tatmaniants <alex@UkrCard.COM>
Cc:        freebsd-hackers@FreeBSD.ORG
Subject:   Re: 2.2.6-stable & devfs & sysmouse ?
Message-ID:  <Pine.BSF.3.95.980327111651.12446A-100000@current1.whistle.com>
In-Reply-To: <Pine.BSF.3.96.980327192542.435A-100000@solaric.UkrCard.COM>

next in thread | previous in thread | raw e-mail | index | archive | help
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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?Pine.BSF.3.95.980327111651.12446A-100000>