On Monday May 14, [EMAIL PROTECTED] wrote: > Neil Brown wrote: > > So I need a major number - to give to devfs_register_blkdev at least. > > You don't want me to have a hardcoded one (which is fine) so I need a > > dynamically allocated one - yes? > > > > This means that we need some analogue to {get,put}_unnamed_dev that > > manages a range of dynamically allocated majors. > > Is there such a beast already, or does someone need to write it? > > What range(s) should be used for block devices? > > register_blkdev will assign a dynamic major to your block device, if a > static one is not provided. This has been true since 2.2, maybe 2.0 > IIRC. Oh, yes. So it does. Give it '0' and it will choose one. I went looking for this functionality once and just couldn't find it.... must be blind :-) Thanks, NeilBrown - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to [EMAIL PROTECTED] More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/
- Re: LANANA: To Pending Device Number Registrants Jeff Garzik
- Re: LANANA: To Pending Device Number Registrants Alan Cox
- Re: LANANA: To Pending Device Number Registrants Jeff Garzik
- Re: LANANA: To Pending Device Number Registrants H. Peter Anvin
- Re: LANANA: To Pending Device Number Registran... Alan Cox
- Re: LANANA: To Pending Device Number Regis... Jan Niehusmann
- Re: LANANA: To Pending Device Number Regis... Alan Cox
- Re: LANANA: To Pending Device Number Registrants Linus Torvalds
- Re: LANANA: To Pending Device Number Registran... Neil Brown
- Re: LANANA: To Pending Device Number Regis... Jeff Garzik
- Re: LANANA: To Pending Device Number Regis... Neil Brown
- Re: LANANA: To Pending Device Number Regis... Alan Cox
- Re: LANANA: To Pending Device Number Regis... Neil Brown
- Re: LANANA: To Pending Device Number Regis... Linus Torvalds
- Re: LANANA: To Pending Device Number Regis... Alan Cox
- Re: LANANA: To Pending Device Number Regis... Linus Torvalds
- Re: LANANA: To Pending Device Number Regis... Alan Cox
- Re: LANANA: To Pending Device Number Regis... Alexander Viro
- Re: LANANA: To Pending Device Number Regis... Alan Cox
- Re: LANANA: To Pending Device Number Regis... Alexander Viro
- Re: LANANA: To Pending Device Number Regis... Alan Cox