[8444] in linux-scsi channel archive

home help back first fref pref prev next nref lref last post

Re: MKDEV and major numbers

daemon@ATHENA.MIT.EDU (Alan Cox)
Tue Mar 21 19:55:18 2000

To: wudragon2@yahoo.com (Stanley Wu)
Date:	Tue, 21 Mar 2000 19:50:16 +0000 (GMT)
Cc: linux-scsi@vger.rutgers.edu (scsi)
In-Reply-To: <20000321162116.15236.qmail@web3504.mail.yahoo.com> from "Stanley Wu" at Mar 21, 2000 08:21:16 AM
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
Message-Id: <E12XUfR-0005OL-00@the-village.bc.nu>
From: Alan Cox <alan@lxorguk.ukuu.org.uk>

> 1. Is there a kernel function call, from the driver,
> equivalent to "mknod" command?  

No

> 2. How can I ensure the /dev/XXXn device remain
> consistent throughout reboots?  It appears to me if I
> have handful of devices, some of them are powered off
> during reboot;  I could be dealing with a different
> device while /dev/XXXn is the same 

There are user side tools that can query the scsi bus and build link farms
by device id so you have constant names. Devfs also deals with this, your
mknod question and more, but is experimental.

Alan


-
To unsubscribe from this list: send the line "unsubscribe linux-scsi" in
the body of a message to majordomo@vger.rutgers.edu

home help back first fref pref prev next nref lref last post