[8371] in linux-scsi channel archive

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

MKDEV and major numbers

daemon@ATHENA.MIT.EDU (Stanley Wu)
Wed Mar 15 10:10:05 2000

Message-ID: <20000315001832.6270.qmail@web3507.mail.yahoo.com>
Date:   Tue, 14 Mar 2000 16:18:32 -0800 (PST)
From: Stanley Wu <wudragon2@yahoo.com>
To: linux-scsi@vger.rutgers.edu
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii

Hello,
I'm writing a scsi character device drivers and
allocate the dynamic major number.  The driver went
through init_module, register_chrdev, ....attach and
MKDEV, they all appeared fine.   The /proc/devices
indicated the major number 254 was assigned to the
driver afterwards.   However, the "ls -l /dev/xxx"
indicates a huge major (8 to 9 digits) number and no
minor number.  In addition, there is no "c" in the 1st
column.
I assigned the acquired major number to my
dd_template.major, or leave it as 0 and it does not
make any difference.  And the flags in the template
indicates character driver.

Help ...
__________________________________________________
Do You Yahoo!?
Talk to your friends online with Yahoo! Messenger.
http://im.yahoo.com

-
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