--- zzzz-none-000/linux-4.4.60/include/linux/pstore.h 2017-04-08 07:53:53.000000000 +0000 +++ hawkeye-5590-729/linux-4.4.60/include/linux/pstore.h 2022-03-30 14:21:53.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*/