OSDN Git Service

bootconfig: Add xbc_get_info() for the node information
authorMasami Hiramatsu <mhiramat@kernel.org>
Thu, 16 Sep 2021 06:23:29 +0000 (15:23 +0900)
committerSteven Rostedt (VMware) <rostedt@goodmis.org>
Mon, 11 Oct 2021 00:43:53 +0000 (20:43 -0400)
commite306220cb7b7c2948f191414ab06851e143b54c1
treeba1934544e721a548cc94935c1a4878cec050739
parentbdac5c2b243f68ec15f8203c3348ae79fee8e8d8
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>
include/linux/bootconfig.h
init/main.c
lib/bootconfig.c
tools/bootconfig/main.c