note/ram: support multiple noterams to dump data when panic occurs

When creating a noteram, you can choose whether to dump
this noteram when the system crashes.

Signed-off-by: yinshengkai <yinshengkai@xiaomi.com>
This commit is contained in:
yinshengkai
2024-12-16 17:54:01 +08:00
committed by GUIDINGLI
parent 7acb0df84f
commit d3460aa111
2 changed files with 20 additions and 9 deletions
+2 -1
View File
@@ -112,7 +112,8 @@ extern struct noteram_driver_s g_noteram_driver;
int noteram_register(void);
FAR struct note_driver_s *
noteram_initialize(FAR const char *devpath, size_t bufsize, bool overwrite);
noteram_initialize(FAR const char *devpath, size_t bufsize,
bool overwrite, bool crashdump);
#endif
#endif /* defined(__KERNEL__) || defined(CONFIG_BUILD_FLAT) */