Minor Numbers

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi,

I wrote my own block device called sbd (using code from http://lwn.net/Articles/58719/) and have currently only been using one device at /dev/sbd0. I get one major number and 16 minor numbers. From my understanding the number of minor numbers is only important for partitions. If I also want to have other devices like /dev/sbd1, /dev/sbd2, ... be supported will I need another major number or is there some way around this? I am currently allocating an array of gendisks and calling add_disk on each one. Is this the correct approach (I have some small bugs) or is this completely wrong?

Thanks,
Can


-- Kernelnewbies: Help each other learn about the Linux kernel. Archive: http://mail.nl.linux.org/kernelnewbies/ FAQ: http://kernelnewbies.org/faq/


[Index of Archives]     [Newbies FAQ]     [Linux Kernel Mentors]     [Linux Kernel Development]     [IETF Annouce]     [Git]     [Networking]     [Security]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux SCSI]     [Linux ACPI]
  Powered by Linux