Page MenuHomeFreeBSD

linuxkpi: Add mising functions in <linux/kmsg_dump.h>
ClosedPublic

Authored by dumbbell on Mar 8 2026, 1:20 PM.
Tags
None
Referenced Files
F169957659: D55732.id173350.diff
Thu, Sep 3, 2:41 AM
F169922066: D55732.id.diff
Wed, Sep 2, 11:43 PM
F169881788: D55732.id173382.diff
Wed, Sep 2, 9:15 PM
F169811366: D55732.id175001.diff
Wed, Sep 2, 3:35 PM
Unknown Object (File)
Wed, Sep 2, 12:15 PM
Unknown Object (File)
Tue, Sep 1, 1:44 AM
Unknown Object (File)
Mon, Aug 31, 11:09 PM
Unknown Object (File)
Mon, Aug 31, 8:51 PM
Subscribers

Details

Summary

The DRM generic code started to use kmsg_dump_get_buffer() and kmsg_dump_rewind() in Linux 6.11.

This is part of the update of DRM drivers to Linux 6.11.

Sponsored by: The FreeBSD Foundation

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

sys/compat/linuxkpi/common/include/linux/kmsg_dump.h
91

Unknown if we want to return a string matching what Linux would do, or perhaps Unimplemented

dumbbell added inline comments.
sys/compat/linuxkpi/common/include/linux/kmsg_dump.h
91

The function returns "Disabled" on Linux when CONFIG_PRINTK is not defined. That’s what I replicated for our non-implemented functions.

I will change that to "Unknown".

dumbbell marked an inline comment as done.

Address comment from @emaste

emaste added inline comments.
sys/compat/linuxkpi/common/include/linux/kmsg_dump.h
91

Oh, missed that. In that case I'm fine with Disabled too.

This revision is now accepted and ready to land.Mar 9 2026, 1:11 AM