What is a "unit" number of a device
Greg 'groggy' Lehey
grog at FreeBSD.org
Wed Oct 22 02:24:53 PDT 2003
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.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 187 bytes
Desc: not available
Url : http://lists.freebsd.org/pipermail/freebsd-questions/attachments/20031022/9f9deb39/attachment.bin
More information about the freebsd-questions
mailing list