Subject: Re: NWSCONS design issue
To: None <tech-kern@netbsd.org>
From: Toru Nishimura <nisimura@is.aist-nara.ac.jp>
List: tech-kern
Date: 08/11/1998 20:10:24
Bogus response to myself.

> Codes below make no sense to me;
>
> #define WSDISPLAYUNIT(dev)      (minor(dev) >> 8)
> #define WSDISPLAYSCREEN(dev)    (minor(dev) & 0xff)
> #define WSDISPLAYMINOR(unit, screen)    (((unit) << 8) | (screen))
>
> Those expect device minor number is longer than 8 bit, which are not
> relevant with NetBSD.  Assuming this is an error, how can I open and
> issue ioctls to the 2nd wsdisplay?

It turns out my NetBSD/pmax binaries (ls and mknod) can not cope with
'NetBSD extended style' dev_t.  To use minor number beyond 255, I
should have used the most recent mknod(8)...  :-0

Tohru Nishimura
Nara Institute of Science and Technology