]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitc530aa15527c9c629f70591286136f0c7ddc0cf8
treeba1934544e721a548cc94935c1a4878cec050739
parent58c2f74d6ee09ae8b6f3588a6ca02c60d1c13d5c
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