1 /* SPDX-License-Identifier: GPL-2.0 */ 2 /* 3 * Copyright (C) 2021 Huawei Technologies Co., Ltd. All rights reserved. 4 */ 5 6 #ifndef BLACKBOX_STORAGE_H 7 #define BLACKBOX_STORAGE_H 8 9 struct reboot_crashlog_storage { 10 int (*storage_log)(void *out, unsigned int outlen); 11 int (*get_log)(void *in, unsigned int inlen); 12 void (*blackbox_dump)(struct kmsg_dumper *dumper, enum kmsg_dump_reason reason); 13 const char *material; 14 }; 15 16 extern char *storage_material; 17 extern const struct reboot_crashlog_storage *storage_lastword; 18 extern const struct reboot_crashlog_storage storage_lastwords[]; 19 20 #endif /* BLACKBOX_STORAGE_H */ 21