git: 0f26aa76efc4 - stable/15 - linuxkpi: Add `struct kmsg_dump_detail`
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Wed, 29 Apr 2026 21:42:54 UTC
The branch stable/15 has been updated by dumbbell:
URL: https://cgit.FreeBSD.org/src/commit/?id=0f26aa76efc4dad2f92da1891f442dda196aa6ce
commit 0f26aa76efc4dad2f92da1891f442dda196aa6ce
Author: Jean-Sébastien Pédron <dumbbell@FreeBSD.org>
AuthorDate: 2026-04-11 09:28:01 +0000
Commit: Jean-Sébastien Pédron <dumbbell@FreeBSD.org>
CommitDate: 2026-04-29 21:03:36 +0000
linuxkpi: Add `struct kmsg_dump_detail`
This structure is used in a modified definition of `struct kmsg_dumper`
field `dump` in Linux 6.12. Therefore this field has two definitions put
behind the values of `LINUXKPI_VERSION`.
The DRM generic code started to use it in Linux 6.12.
Reviewed by: bz
Sponsored by: The FreeBSD Foundation
(cherry picked from commit e692f36a678d4fad6054161e554eb5ec544fffa8)
---
sys/compat/linuxkpi/common/include/linux/kmsg_dump.h | 9 +++++++++
1 file changed, 9 insertions(+)
diff --git a/sys/compat/linuxkpi/common/include/linux/kmsg_dump.h b/sys/compat/linuxkpi/common/include/linux/kmsg_dump.h
index 539981c54d1b..e7f95ced3047 100644
--- a/sys/compat/linuxkpi/common/include/linux/kmsg_dump.h
+++ b/sys/compat/linuxkpi/common/include/linux/kmsg_dump.h
@@ -30,9 +30,18 @@ struct kmsg_dump_iter {
uint64_t next_seq;
};
+struct kmsg_dump_detail {
+ enum kmsg_dump_reason reason;
+ const char *description;
+};
+
struct kmsg_dumper {
struct list_head list;
+#if defined(LINUXKPI_VERSION) && LINUXKPI_VERSION < 61200
void (*dump)(struct kmsg_dumper *dumper, enum kmsg_dump_reason reason);
+#else
+ void (*dump)(struct kmsg_dumper *dumper, struct kmsg_dump_detail *detail);
+#endif
enum kmsg_dump_reason max_reason;
bool registered;
};