hc
2024-05-10 23fa18eaa71266feff7ba8d83022d9e1cc83c65a
kernel/include/linux/kobject.h
....@@ -7,7 +7,7 @@
77 * Copyright (c) 2006-2008 Greg Kroah-Hartman <greg@kroah.com>
88 * Copyright (c) 2006-2008 Novell Inc.
99 *
10
- * Please read Documentation/kobject.txt before using the kobject
10
+ * Please read Documentation/core-api/kobject.rst before using the kobject
1111 * interface, ESPECIALLY the parts about reference counts and object
1212 * destructors.
1313 */
....@@ -31,7 +31,7 @@
3131
3232 #define UEVENT_HELPER_PATH_LEN 256
3333 #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 */
3535
3636 #ifdef CONFIG_UEVENT_HELPER
3737 /* path to the userspace helper executed on an event */
....@@ -60,7 +60,6 @@
6060 KOBJ_OFFLINE,
6161 KOBJ_BIND,
6262 KOBJ_UNBIND,
63
- KOBJ_MAX
6463 };
6564
6665 struct kobject {
....@@ -145,7 +144,8 @@
145144 struct kobj_type {
146145 void (*release)(struct kobject *kobj);
147146 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;
149149 const struct kobj_ns_type_operations *(*child_ns_type)(struct kobject *kobj);
150150 const void *(*namespace)(struct kobject *kobj);
151151 void (*get_ownership)(struct kobject *kobj, kuid_t *uid, kgid_t *gid);