Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 22 Oct 2003 18:55:14 +0930
From:      Greg 'groggy' Lehey <grog@FreeBSD.org>
To:        rk47 <rk@nanoteq.co.za>
Cc:        freebsd-questions@freebsd.org
Subject:   Re: What is a "unit" number of a device
Message-ID:  <20031022092514.GP33152@wantadilla.lemis.com>
In-Reply-To: <bn34bp$c8f$1@sea.gmane.org>
References:  <bn34bp$c8f$1@sea.gmane.org>

next in thread | previous in thread | raw e-mail | index | archive | help

--0fZkDq/H4AmqaB8D
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline

On Tuesday, 21 October 2003 at 13:25:20 +0200, rk47 wrote:
> What is a "unit" number of a device

That depends a lot on the device.  For SCSI disks, you select the unit
number on the drive itself.

> and how does it relate to the minor number of the device.

Typically the last few bits of the minor number map directly to the
unit number.

> Is there a generic relationship or dowes it differ between devives.

"Yes".

Look at the section man page for the device in question.  It *should*
give that mapping.  If it doesn't, the header files are (maybe) your
friend.

Greg
--
When replying to this message, please copy the original recipients.
If you don't, I may ignore the reply or reply to the original recipients.
For more information, see http://www.lemis.com/questions.html
See complete headers for address and phone numbers.

--0fZkDq/H4AmqaB8D
Content-Type: application/pgp-signature
Content-Disposition: inline

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.0 (FreeBSD)

iD8DBQE/lkz6IubykFB6QiMRAqFXAKCYckZAn3HTDE+cXljQcrqaTJFXeQCeJsQ+
5xBAm6KU7Rv1zIlc3PaOGt4=
=QFAC
-----END PGP SIGNATURE-----

--0fZkDq/H4AmqaB8D--



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20031022092514.GP33152>