diff options
author | Kay Sievers <kay.sievers@novell.com> | 2006-10-07 21:54:55 +0200 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@suse.de> | 2007-02-07 10:37:14 -0800 |
commit | b7a3e813fb84624166f034e25234f98de5846bfc (patch) | |
tree | 5936d2755e6f4fcdbf3a34c743a7840cdc72b9a2 /include/linux/device.h | |
parent | f9f852df2faf76a2667949ddb4947d4b8f99f02f (diff) | |
download | linux-stable-b7a3e813fb84624166f034e25234f98de5846bfc.tar.gz linux-stable-b7a3e813fb84624166f034e25234f98de5846bfc.tar.bz2 linux-stable-b7a3e813fb84624166f034e25234f98de5846bfc.zip |
Driver core: allow to delay the uevent at device creation time
For the block subsystem, we want to delay all uevents until the
disk has been scanned and allpartitons are already created before
the first event is sent out.
Signed-off-by: Kay Sievers <kay.sievers@novell.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Diffstat (limited to 'include/linux/device.h')
-rw-r--r-- | include/linux/device.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/include/linux/device.h b/include/linux/device.h index e1e164f81eea..5ca1cdba563a 100644 --- a/include/linux/device.h +++ b/include/linux/device.h @@ -399,9 +399,10 @@ struct device { /* class_device migration path */ struct list_head node; - struct class *class; /* optional*/ + struct class *class; dev_t devt; /* dev_t, creates the sysfs "dev" */ struct attribute_group **groups; /* optional groups */ + int uevent_suppress; void (*release)(struct device * dev); }; |