--- zzzz-none-000/linux-4.4.271/include/linux/pstore.h 2021-06-03 06:22:09.000000000 +0000 +++ dakota-7530ac-750/linux-4.4.271/include/linux/pstore.h 2023-01-11 09:25:43.000000000 +0000 @@ -70,6 +70,8 @@ int (*erase)(enum pstore_type_id type, u64 id, int count, struct timespec time, struct pstore_info *psi); + ssize_t (*copy)(enum pstore_type_id type, u64 id, void **buf, + struct pstore_info *psi); void *data; }; @@ -79,4 +81,6 @@ extern void pstore_unregister(struct pstore_info *); extern bool pstore_cannot_block_path(enum kmsg_dump_reason reason); +#define pstore_copy pstore_copy +extern ssize_t pstore_copy(enum pstore_type_id type, u64 id, void **buf); #endif /*_LINUX_PSTORE_H*/