]> git.karo-electronics.de Git - mv-sheeva.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)
commitfb08bd274df61967f40d49c4625fe6ed75a69ab5
tree911fa24e1b916ad70cff10feeed17bba1de037b1
parentb766ceed5bbf04ae153389f5a15f53b9b6106a35
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