Subject: Re: Custom device driver
To: Bill Studenmund <skippy@macro.stanford.edu>
From: Mary Rivett <mrivett@flick.lerc.nasa.gov>
List: port-i386
Date: 07/31/1997 11:30:54
> > Everything configs and builds ok; ioconf.c looks right; mknods were done. 
> > There is only one dm device, but 2 tsh devices with minor numbers 0 & 1.
> > All 3 device special files are present in /dev.

> There are some new major numbers in 1.2 which weren't in 1.1. So it could
> be that you need to change the major number. I know you checked it when
> you brought forward the patches, but.... Hmm.

It looked to me like the new devices were assigned unused numbers from the
middle of the array and the ones we're using were added at the end.

> > The problem occurs when I try to run a test program that opens each device 
> > and reads from it. The dm device works fine. The tsh devices fail the open()
> > with ENOENT (open '/dev/tsh{0,1}' failed, No such file or directory). 

> Is the test program sampling from the right device? I mean the one looking
> at dm0 spews data which look like they'fr from dm0?

Yep. The output from the device which works (dm0) is correct.