TMSCP interface

der Mouse mouse at mcgill-vision.UUCP
Fri Jun 10 19:18:35 AEST 1988


In article <424 at spock.UUCP>, eric at spock.UUCP (Eric Volpe) writes:
> does anybody know the major/minor device numbers for a TMSCP style
> tape drive (on a VAX, 4.3BSD)?

Check /sys/vax/conf.c.  From ours, which is mtXinu 4.3+NFS:

bdevsw:
	{ tmscpopen,	tmscpclose,	tmscpstrategy,	tmscpdump,	/* 15 */
	  0,		B_TAPE },
cdevsw:
	tmscpopen,	tmscpclose,	tmscpread,	tmscpwrite,	/* 38 */
	tmscpioctl,	nodev,		tmscpreset,	0,
	seltrue,	nodev,

So our major number is 15 for the block device and 38 for the raw
device; your major numbers will probably be the same, but it's a good
idea to check.  The minor number will presumably be 0, 4, 8, or 12 for
/dev/[r]mt0, /dev/[r]mt4, /dev/[r]mt8, or /dev/[r]mt12.

> Actually, its not a tape but a WORM disk imitating one, but that
> shouldn't make any difference at all.

As long as it uses the same driver, no.  And I believe that driver can
be used by anything that speaks tmscp.

					der Mouse

			uucp: mouse at mcgill-vision.uucp
			arpa: mouse at larry.mcrcim.mcgill.edu



More information about the Comp.unix.wizards mailing list