Skip to content
Snippets Groups Projects
Commit 824a295d authored by Armin Luntzer's avatar Armin Luntzer
Browse files

SYSCTL: init on boot

parent 9bb3946b
No related branches found
No related tags found
No related merge requests found
......@@ -68,7 +68,5 @@ void sysset_show_tree(struct sysset *sysset);
struct sysobj *sysset_find_obj(struct sysset *sysset, const char *path);
int32_t sysctl_init(void);
#endif
......@@ -52,6 +52,8 @@
#include <kernel/export.h>
#include <kernel/string.h>
#include <kernel/init.h>
#include <errno.h>
#include <list.h>
......@@ -560,7 +562,7 @@ void sysset_show_tree(struct sysset *sysset)
* @brief initalises sysctl
*/
int32_t sysctl_init(void)
static int sysctl_init(void)
{
if (sys_set)
return -1;
......@@ -577,3 +579,4 @@ int32_t sysctl_init(void)
return 0;
}
subsys_initcall(sysctl_init);
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment