--- zzzz-none-000/linux-4.4.271/include/linux/pstore.h 2021-06-03 06:22:09.000000000 +0000 +++ hawkeye-5590-750/linux-4.4.271/include/linux/pstore.h 2023-04-19 10:22:30.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*/