Thread (19 messages) 19 messages, 6 authors, 2026-03-31

Re: [PATCH v4 1/3] kernel: ksysfs: initialize kernel_kobj earlier

From: Bartosz Golaszewski <brgl@kernel.org>
Date: 2026-03-30 14:19:22
Also in: driver-core, linux-acpi, linux-omap, lkml

On Mon, Mar 30, 2026 at 3:47 PM Danilo Krummrich [off-list ref] wrote:
On Mon Mar 30, 2026 at 2:40 PM CEST, Bartosz Golaszewski wrote:
quoted
diff --git a/include/linux/kobject.h b/include/linux/kobject.h
index c8219505a79f98bc370e52997efc8af51833cfda..71b9086621c35b7e4ef99b9d3b6707db23faf58c 100644
--- a/include/linux/kobject.h
+++ b/include/linux/kobject.h
@@ -219,4 +219,6 @@ int kobject_synth_uevent(struct kobject *kobj, const char *buf, size_t count);
 __printf(2, 3)
 int add_uevent_var(struct kobj_uevent_env *env, const char *format, ...);

+void ksysfs_init(void);
NIT: I'm aware there's also all the core kobjects in include/linux/kobject.h,
but maybe a separate header would be a better fit.
Do you mean moving all the top-level kobject declarations
(kernel_kobj, firmware_kobj, etc.) out of kobject.h into this new
header (ksysfs.h?) along with their init functions?

Bart
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help