virtio: console: Generate a kobject CHANGE event on adding 'name' attribute
authorAmit Shah <amit.shah@redhat.com>
Fri, 19 Mar 2010 12:06:43 +0000 (17:36 +0530)
committerMichael S. Tsirkin <mst@redhat.com>
Mon, 22 Mar 2010 12:24:53 +0000 (14:24 +0200)
commitec64213c4d482ee4d15b34511441eaecdd002adf
tree58f9ada4b6c82fffe9e0da2b72aa64bf879a5718
parent220bf991b0366cc50a94feede3d7341fa5710ee4
virtio: console: Generate a kobject CHANGE event on adding 'name' attribute

When the host lets us know what 'name' a port is assigned, we create the
sysfs 'name' attribute. Generate a 'change' event after this so that
udev wakes up and acts on the rules for virtio-ports (currently there's
only one rule that creates a symlink from the 'name' to the actual char
device).

Signed-off-by: Amit Shah <amit.shah@redhat.com>
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
drivers/char/virtio_console.c