Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F155043134
D55732.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
1 KB
Referenced Files
None
Subscribers
None
D55732.diff
View Options
diff --git a/sys/compat/linuxkpi/common/include/linux/kmsg_dump.h b/sys/compat/linuxkpi/common/include/linux/kmsg_dump.h
--- a/sys/compat/linuxkpi/common/include/linux/kmsg_dump.h
+++ b/sys/compat/linuxkpi/common/include/linux/kmsg_dump.h
@@ -25,6 +25,11 @@
KMSG_DUMP_MAX
};
+struct kmsg_dump_iter {
+ uint64_t cur_seq;
+ uint64_t next_seq;
+};
+
struct kmsg_dumper {
struct list_head list;
void (*dump)(struct kmsg_dumper *dumper, enum kmsg_dump_reason reason);
@@ -32,6 +37,36 @@
bool registered;
};
+static inline void
+kmsg_dump(enum kmsg_dump_reason reason)
+{
+ pr_debug("TODO");
+}
+
+static inline bool
+kmsg_dump_get_line(struct kmsg_dump_iter *iter, bool syslog,
+ const char *line, size_t size, size_t *len)
+{
+ pr_debug("TODO");
+
+ return (false);
+}
+
+static inline bool
+kmsg_dump_get_buffer(struct kmsg_dump_iter *iter, bool syslog,
+ char *buf, size_t size, size_t *len)
+{
+ pr_debug("TODO");
+
+ return (false);
+}
+
+static inline void
+kmsg_dump_rewind(struct kmsg_dump_iter *iter)
+{
+ pr_debug("TODO");
+}
+
static inline int
kmsg_dump_register(struct kmsg_dumper *dumper)
{
@@ -48,4 +83,11 @@
return (-EINVAL);
}
+static inline const char *
+kmsg_dump_reason_str(enum kmsg_dump_reason reason)
+{
+ pr_debug("TODO");
+
+ return ("Unknown");
+}
#endif
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Fri, May 1, 10:08 PM (10 h, 28 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
29456946
Default Alt Text
D55732.diff (1 KB)
Attached To
Mode
D55732: linuxkpi: Add mising functions in <linux/kmsg_dump.h>
Attached
Detach File
Event Timeline
Log In to Comment