On Wed, 15 Mar 2023, arnold(a)skeeve.com wrote:
[...]
That is, 'c' for character device, major
device is the index in cdevsw,
and minor device indicates which physical one to use. Since you only
have one, it should be 0.
There's also the possibility of using the upper-order bits to pass flags,
although there's not a lot that you can do with a printer (control of page
throw, etc).
-- Dave