aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux/bootconfig.h
diff options
context:
space:
mode:
authorMasami Hiramatsu <mhiramat@kernel.org>2021-09-16 15:23:29 +0900
committerSteven Rostedt (VMware) <rostedt@goodmis.org>2021-10-10 20:43:53 -0400
commite306220cb7b7c2948f191414ab06851e143b54c1 (patch)
treeba1934544e721a548cc94935c1a4878cec050739 /include/linux/bootconfig.h
parentbootconfig: Allocate xbc_data inside xbc_init() (diff)
downloadlinux-dev-e306220cb7b7c2948f191414ab06851e143b54c1.tar.xz
linux-dev-e306220cb7b7c2948f191414ab06851e143b54c1.zip
bootconfig: Add xbc_get_info() for the node information
Add xbc_get_info() API which allows user to get the number of used xbc_nodes and the size of bootconfig data. This is also useful for checking the bootconfig is initialized or not. Link: https://lkml.kernel.org/r/163177340877.682366.4360676589783197627.stgit@devnote2 Signed-off-by: Masami Hiramatsu <mhiramat@kernel.org> Signed-off-by: Steven Rostedt (VMware) <rostedt@goodmis.org>
Diffstat (limited to 'include/linux/bootconfig.h')
-rw-r--r--include/linux/bootconfig.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/include/linux/bootconfig.h b/include/linux/bootconfig.h
index 62e09b788172..f955bb7eabbb 100644
--- a/include/linux/bootconfig.h
+++ b/include/linux/bootconfig.h
@@ -273,6 +273,8 @@ static inline int __init xbc_node_compose_key(struct xbc_node *node,
/* XBC node initializer */
int __init xbc_init(const char *buf, size_t size, const char **emsg, int *epos);
+/* XBC node and size information */
+int __init xbc_get_info(int *node_size, size_t *data_size);
/* XBC cleanup data structures */
void __init xbc_destroy_all(void);