]> git.baikalelectronics.ru Git - kernel.git/commit
virtio: console: Register with sysfs and create a 'name' attribute for ports
authorAmit Shah <amit.shah@redhat.com>
Mon, 21 Dec 2009 16:27:40 +0000 (21:57 +0530)
committerRusty Russell <rusty@rustcorp.com.au>
Wed, 24 Feb 2010 03:52:56 +0000 (14:22 +1030)
commit7d1c3c016d44595df546f8f53446e4dabf9bf084
treedef6892310b7a09ecf6bfbc01dc3cd0a2819fca7
parent7d844fc03dabc55100ee2c5f8d936fdadb212a13
virtio: console: Register with sysfs and create a 'name' attribute for ports

The host can set a name for ports so that they're easily discoverable
instead of going by the /dev/vportNpn naming. This attribute will be
placed in /sys/class/virtio-ports/vportNpn/name. udev scripts can then
create symlinks to the port using the name.

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