Re: DEVFS backward compatibility

From: Albert D. Cahalan (acahalan@cs.uml.edu)
Date: Tue Feb 29 2000 - 03:40:44 EST


Michael T. Babcock writes:

> Is it at all probable at this stage that devfs will be a different
> directory than "dev" ?
> I just think that backward compatibility can be pseudo-maintained best
> by having a /dev/ directory full of those generated names (like devfsd
> or just symlinking) but having a separate hierarchial structure that's
> still easy to peruse (for those new to the system) as they migrate.
>
> /dev/sda3 -> /devices/scsi/a/3
> /dev/usb14 -> /devices/usb/14

For those that don't know, this is exactly what Solaris does:

/dev/null -> ../devices/pseudo/mm@0:null
/dev/dsk/c0t3d0s2 -> ../../devices/sbus@1f,0/SUNW,fas@e,8800000/sd@3,0:c
/dev/ptyq3 -> ../devices/pseudo/ptc@0:ptyq3
/dev/pts/7 -> ../../devices/pseudo/pts@0:7
/dev/fbs/cgsix0 -> ../../devices/sbus@1f,0/cgsix@2,0:cgsix0

The /etc/devlink.tab file is used by the devlinks program to
create these links. This program, along with the drvconfig program,
is run during a reconfiguration reboot. Linux is a bit more
dynamic, but it could still use the same config file and
the same "/devices" directory.

I'd guess http://docs.sun.com/ has public documentation for this.

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.rutgers.edu
Please read the FAQ at http://www.tux.org/lkml/



This archive was generated by hypermail 2b29 : Tue Feb 29 2000 - 21:00:21 EST