erst.c (b3b515bbd689ba3937cac2dd3fc55057f8c50329) | erst.c (9a4e1398208d147a9240731a1f8cfe7d8cc4c553) |
---|---|
1/* 2 * APEI Error Record Serialization Table support 3 * 4 * ERST is a way provided by APEI to save and retrieve hardware error 5 * information to and from a persistent store. 6 * 7 * For more information about ERST, please refer to ACPI Specification 8 * version 4.0, section 17.4. --- 921 unchanged lines hidden (view full) --- 930 931 return 0; 932} 933 934static int erst_open_pstore(struct pstore_info *psi); 935static int erst_close_pstore(struct pstore_info *psi); 936static ssize_t erst_reader(u64 *id, enum pstore_type_id *type, int *count, 937 struct timespec *time, char **buf, | 1/* 2 * APEI Error Record Serialization Table support 3 * 4 * ERST is a way provided by APEI to save and retrieve hardware error 5 * information to and from a persistent store. 6 * 7 * For more information about ERST, please refer to ACPI Specification 8 * version 4.0, section 17.4. --- 921 unchanged lines hidden (view full) --- 930 931 return 0; 932} 933 934static int erst_open_pstore(struct pstore_info *psi); 935static int erst_close_pstore(struct pstore_info *psi); 936static ssize_t erst_reader(u64 *id, enum pstore_type_id *type, int *count, 937 struct timespec *time, char **buf, |
938 struct pstore_info *psi); | 938 bool *compressed, struct pstore_info *psi); |
939static int erst_writer(enum pstore_type_id type, enum kmsg_dump_reason reason, 940 u64 *id, unsigned int part, int count, bool compressed, 941 size_t size, struct pstore_info *psi); 942static int erst_clearer(enum pstore_type_id type, u64 id, int count, 943 struct timespec time, struct pstore_info *psi); 944 945static struct pstore_info erst_info = { 946 .owner = THIS_MODULE, --- 39 unchanged lines hidden (view full) --- 986{ 987 erst_get_record_id_end(); 988 989 return 0; 990} 991 992static ssize_t erst_reader(u64 *id, enum pstore_type_id *type, int *count, 993 struct timespec *time, char **buf, | 939static int erst_writer(enum pstore_type_id type, enum kmsg_dump_reason reason, 940 u64 *id, unsigned int part, int count, bool compressed, 941 size_t size, struct pstore_info *psi); 942static int erst_clearer(enum pstore_type_id type, u64 id, int count, 943 struct timespec time, struct pstore_info *psi); 944 945static struct pstore_info erst_info = { 946 .owner = THIS_MODULE, --- 39 unchanged lines hidden (view full) --- 986{ 987 erst_get_record_id_end(); 988 989 return 0; 990} 991 992static ssize_t erst_reader(u64 *id, enum pstore_type_id *type, int *count, 993 struct timespec *time, char **buf, |
994 struct pstore_info *psi) | 994 bool *compressed, struct pstore_info *psi) |
995{ 996 int rc; 997 ssize_t len = 0; 998 u64 record_id; 999 struct cper_pstore_record *rcd; 1000 size_t rcd_len = sizeof(*rcd) + erst_info.bufsize; 1001 1002 if (erst_disable) --- 221 unchanged lines hidden --- | 995{ 996 int rc; 997 ssize_t len = 0; 998 u64 record_id; 999 struct cper_pstore_record *rcd; 1000 size_t rcd_len = sizeof(*rcd) + erst_info.bufsize; 1001 1002 if (erst_disable) --- 221 unchanged lines hidden --- |