<div dir="ltr"><div>In: /usr/src/uts/vax/cf</div><div><br></div><div>This is what is in conf.c:</div><div>struct cdevsw cdevsw[] = {<br>/* 0*/  conopen,        conclose,       conread,        conwrite,       conioctl,       0,<br>/* 1*/  dzopen, dzclose,        dzread, dzwrite,        dzioctl,        dz_tty,<br>/* 2*/  syopen, nulldev,        syread, sywrite,        syioctl,        0,<br>/* 3*/  nulldev,        nulldev,        mmread, mmwrite,        nodev,  0,<br>/* 4*/  gdopen, gdclose,        gdread, gdwrite,        nodev,  0,<br>/* 5*/  htopen, htclose,        htread, htwrite,        nodev,  0,<br>/* 6*/  nodev,  nodev,  nodev,  nodev,  nodev,  0,<br>/* 7*/  nodev,  nodev,  nodev,  nodev,  nodev,  0,<br>/* 8*/  erropen,        errclose,       errread,        nodev,  nodev,  0,<br>};</div><div><br></div><div>In "master" sample entries are:</div><div>ts11    4       36      115     ts      4       1       5       1       5<br>tu78    1       36      515     hu      0       1       5       4       5<br>rm05    1       76      515     hm      0       0       4       8       5<br>nsc     4       77      5       nsc     8       0       10      1       5       ndb ct<br><b>lp11    4       73      5       lp      4       0       6       1       4</b><br>dn11    4       32      6       dn      8       0       7       4       5<br>vp      4       33      5       vp      16      0       14      1       5       vp<br>dmc11   8       37      6       dmc     8       0       19      1       5</div><div><br></div><div>Those numbers do not mean much to me.</div><div><br></div><div>Does this help in determining major/minor number for lp?</div><div><br></div><div>Thanks</div><div>Ken</div><div><br></div><div><br></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Wed, Mar 15, 2023 at 4:53 AM Dave Horsfall <<a href="mailto:dave@horsfall.org">dave@horsfall.org</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">On Wed, 15 Mar 2023, <a href="mailto:arnold@skeeve.com" target="_blank">arnold@skeeve.com</a> wrote:<br>
<br>
[...]<br>
<br>
> That is, 'c' for character device, major device is the index in cdevsw, <br>
> and minor device indicates which physical one to use. Since you only <br>
> have one, it should be 0.<br>
<br>
There's also the possibility of using the upper-order bits to pass flags, <br>
although there's not a lot that you can do with a printer (control of page <br>
throw, etc).<br>
<br>
-- Dave<br>
</blockquote></div><br clear="all"><br><span class="gmail_signature_prefix">-- </span><br><div dir="ltr" class="gmail_signature"><div dir="ltr"><div>End of line</div><div>JOB TERMINATED</div><div><br></div><div><br></div></div></div>