.. | .. |
---|
7 | 7 | * Copyright (c) 2006-2008 Greg Kroah-Hartman <greg@kroah.com> |
---|
8 | 8 | * Copyright (c) 2006-2008 Novell Inc. |
---|
9 | 9 | * |
---|
10 | | - * Please read Documentation/kobject.txt before using the kobject |
---|
| 10 | + * Please read Documentation/core-api/kobject.rst before using the kobject |
---|
11 | 11 | * interface, ESPECIALLY the parts about reference counts and object |
---|
12 | 12 | * destructors. |
---|
13 | 13 | */ |
---|
.. | .. |
---|
31 | 31 | |
---|
32 | 32 | #define UEVENT_HELPER_PATH_LEN 256 |
---|
33 | 33 | #define UEVENT_NUM_ENVP 64 /* number of env pointers */ |
---|
34 | | -#define UEVENT_BUFFER_SIZE 4096 /* buffer for the variables */ |
---|
| 34 | +#define UEVENT_BUFFER_SIZE 2048 /* buffer for the variables */ |
---|
35 | 35 | |
---|
36 | 36 | #ifdef CONFIG_UEVENT_HELPER |
---|
37 | 37 | /* path to the userspace helper executed on an event */ |
---|
.. | .. |
---|
60 | 60 | KOBJ_OFFLINE, |
---|
61 | 61 | KOBJ_BIND, |
---|
62 | 62 | KOBJ_UNBIND, |
---|
63 | | - KOBJ_MAX |
---|
64 | 63 | }; |
---|
65 | 64 | |
---|
66 | 65 | struct kobject { |
---|
.. | .. |
---|
145 | 144 | struct kobj_type { |
---|
146 | 145 | void (*release)(struct kobject *kobj); |
---|
147 | 146 | const struct sysfs_ops *sysfs_ops; |
---|
148 | | - struct attribute **default_attrs; |
---|
| 147 | + struct attribute **default_attrs; /* use default_groups instead */ |
---|
| 148 | + const struct attribute_group **default_groups; |
---|
149 | 149 | const struct kobj_ns_type_operations *(*child_ns_type)(struct kobject *kobj); |
---|
150 | 150 | const void *(*namespace)(struct kobject *kobj); |
---|
151 | 151 | void (*get_ownership)(struct kobject *kobj, kuid_t *uid, kgid_t *gid); |
---|