public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* allocate an official device major number for virtio device?
@ 2016-03-03  1:08 Jin Qian
  2016-03-03  1:25 ` Greg Kroah-Hartman
  0 siblings, 1 reply; 12+ messages in thread
From: Jin Qian @ 2016-03-03  1:08 UTC (permalink / raw)
  To: linux-kernel; +Cc: jsharkey, digit, Greg Kroah-Hartman, pprabhu, Yu Ning

Hi -

Can we allocate an official device major number for virtio devices?
Currently it's using 240-254 (LOCAL/EXPERIMENTAL USE). The reason we
ask for this is because userspace will need to treat virtio block
devices differently and need a way to detect such device. For example,
it checks major number to detect scsi and mmc device.

https://android-review.googlesource.com/#/c/195240

With dynamic major numbers 240-254, we might treat other devices as
virtio block device incorrectly.

Also open for suggestions on what's the correct way to handle this.

Thanks in advance!
jin

^ permalink raw reply	[flat|nested] 12+ messages in thread

end of thread, other threads:[~2016-03-03 22:43 UTC | newest]

Thread overview: 12+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-03-03  1:08 allocate an official device major number for virtio device? Jin Qian
2016-03-03  1:25 ` Greg Kroah-Hartman
2016-03-03  1:48   ` Jin Qian
2016-03-03  3:52     ` Ning, Yu
2016-03-03 14:46       ` One Thousand Gnomes
2016-03-03 17:18       ` Greg Kroah-Hartman
2016-03-03 19:32         ` Jin Qian
2016-03-03 20:00           ` Greg Kroah-Hartman
2016-03-03 22:12             ` Jeff Sharkey
2016-03-03 22:35               ` Richard Weinberger
2016-03-03 22:43               ` Greg Kroah-Hartman
2016-03-03 17:17     ` Greg Kroah-Hartman

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox