]> git.baikalelectronics.ru Git - kernel.git/commit
virtio: console: Associate each port with a char device
authorAmit Shah <amit.shah@redhat.com>
Mon, 21 Dec 2009 16:06:04 +0000 (21:36 +0530)
committerRusty Russell <rusty@rustcorp.com.au>
Wed, 24 Feb 2010 03:52:53 +0000 (14:22 +1030)
commit38caf8a2cfa682c5108383a910eeb5630d1e19bf
tree911fa24e1b916ad70cff10feeed17bba1de037b1
parentca1cdda9bfa31af3097f6f978131b0f137145759
virtio: console: Associate each port with a char device

The char device will be used as an interface by applications on the
guest to communicate with apps on the host.

The devices created are placed in /dev/vportNpn where N is the
virtio-console device number and n is the port number for that device.

One dynamic major device number is allocated for each device and minor
numbers are allocated for the ports contained within that device.

The file operation for the char devs will be added in the following
commits.

Signed-off-by: Amit Shah <amit.shah@redhat.com>
Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
drivers/char/Kconfig
drivers/char/virtio_console.c