diff options
author | Amit Shah <amit.shah@redhat.com> | 2009-12-21 11:27:40 -0500 |
---|---|---|
committer | Rusty Russell <rusty@rustcorp.com.au> | 2010-02-23 22:52:56 -0500 |
commit | 431edb8a8bca71008fefceadf53b9315ef7196ec (patch) | |
tree | def6892310b7a09ecf6bfbc01dc3cd0a2819fca7 /include/linux/virtio_console.h | |
parent | 3c7969ccb569968a79fab3729075751bc8fc2f78 (diff) |
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>
Diffstat (limited to 'include/linux/virtio_console.h')
-rw-r--r-- | include/linux/virtio_console.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/include/linux/virtio_console.h b/include/linux/virtio_console.h index bd0e2a596f93..1ebf007812a8 100644 --- a/include/linux/virtio_console.h +++ b/include/linux/virtio_console.h | |||
@@ -40,6 +40,7 @@ struct virtio_console_control { | |||
40 | #define VIRTIO_CONSOLE_CONSOLE_PORT 1 | 40 | #define VIRTIO_CONSOLE_CONSOLE_PORT 1 |
41 | #define VIRTIO_CONSOLE_RESIZE 2 | 41 | #define VIRTIO_CONSOLE_RESIZE 2 |
42 | #define VIRTIO_CONSOLE_PORT_OPEN 3 | 42 | #define VIRTIO_CONSOLE_PORT_OPEN 3 |
43 | #define VIRTIO_CONSOLE_PORT_NAME 4 | ||
43 | 44 | ||
44 | #ifdef __KERNEL__ | 45 | #ifdef __KERNEL__ |
45 | int __init virtio_cons_early_init(int (*put_chars)(u32, const char *, int)); | 46 | int __init virtio_cons_early_init(int (*put_chars)(u32, const char *, int)); |