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)
commit431edb8a8bca71008fefceadf53b9315ef7196ec
treedef6892310b7a09ecf6bfbc01dc3cd0a2819fca7
parent3c7969ccb569968a79fab3729075751bc8fc2f78
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