* Question: multiple major numbers - one driver
@ 2000-10-27 19:07 chris parker
2000-10-27 20:37 ` Andreas Dilger
0 siblings, 1 reply; 2+ messages in thread
From: chris parker @ 2000-10-27 19:07 UTC (permalink / raw)
To: linux-kernel; +Cc: chris_parker, hnguyen
I have a need for more than 256 minor numbers. I could add some
more major numbers, thus getting the number of majors * 256.
I would like to have only device driver loaded to handle the
multiple majors.
I thoought of the following things that would have to be changed:
1) make the new device descriptors
2) add the new majors to the register_blkdev and unregister
system calls
3) process multiple CURRENT q's when receiving a request
from the block device layer. Each unique major has
a seperate incoming q.
Does any know of anything else that would prevent me from doing
this ??
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
Please read the FAQ at http://www.tux.org/lkml/
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: Question: multiple major numbers - one driver
2000-10-27 19:07 Question: multiple major numbers - one driver chris parker
@ 2000-10-27 20:37 ` Andreas Dilger
0 siblings, 0 replies; 2+ messages in thread
From: Andreas Dilger @ 2000-10-27 20:37 UTC (permalink / raw)
To: chris parker; +Cc: linux-kernel, chris_parker, hnguyen
Chris Parker writes:
> I have a need for more than 256 minor numbers. I could add some
> more major numbers, thus getting the number of majors * 256.
> I would like to have only device driver loaded to handle the
> multiple majors.
Look at the SCSI/IDE/COMPAQ Smart RAID/etc drivers that have multiple
major numbers registered (per Documentation/devices.txt). Some of
the storage drivers have been allocating blocks of 8 major numbers at
a time.
Cheers, Andreas
--
Andreas Dilger \ "If a man ate a pound of pasta and a pound of antipasto,
\ would they cancel out, leaving him still hungry?"
http://www-mddsp.enel.ucalgary.ca/People/adilger/ -- Dogbert
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
Please read the FAQ at http://www.tux.org/lkml/
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2000-10-27 20:39 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2000-10-27 19:07 Question: multiple major numbers - one driver chris parker
2000-10-27 20:37 ` Andreas Dilger
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®