aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux/pstore.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/linux/pstore.h')
-rw-r--r--include/linux/pstore.h21
1 files changed, 5 insertions, 16 deletions
diff --git a/include/linux/pstore.h b/include/linux/pstore.h
index 2cd1979d1f9a..cbf5e561778d 100644
--- a/include/linux/pstore.h
+++ b/include/linux/pstore.h
@@ -142,19 +142,11 @@ struct pstore_record {
142 * Returns 0 on success, and non-zero on error. 142 * Returns 0 on success, and non-zero on error.
143 * 143 *
144 * @write_buf: 144 * @write_buf:
145 * Perform a frontend write to a backend record, using a specified 145 * Perform a frontend write to a backend record. The record contains
146 * buffer. Unlike @write, this does not use the @psi @buf. 146 * all metadata and the buffer to write to backend storage. (Unlike
147 * @write, this does not use the @psi @buf.)
147 * 148 *
148 * @type: in: pstore record type to write 149 * @record: pointer to record metadata.
149 * @reason:
150 * in: pstore write reason
151 * @id: out: unique identifier for the record
152 * @part: in: position in a multipart write
153 * @buf: in: pointer to contents to write to backend record
154 * @compressed:
155 * in: if the record is compressed
156 * @size: in: size of the write
157 * @psi: in: pointer to the struct pstore_info for the backend
158 * 150 *
159 * Returns 0 on success, and non-zero on error. 151 * Returns 0 on success, and non-zero on error.
160 * 152 *
@@ -203,10 +195,7 @@ struct pstore_info {
203 int (*close)(struct pstore_info *psi); 195 int (*close)(struct pstore_info *psi);
204 ssize_t (*read)(struct pstore_record *record); 196 ssize_t (*read)(struct pstore_record *record);
205 int (*write)(struct pstore_record *record); 197 int (*write)(struct pstore_record *record);
206 int (*write_buf)(enum pstore_type_id type, 198 int (*write_buf)(struct pstore_record *record);
207 enum kmsg_dump_reason reason, u64 *id,
208 unsigned int part, const char *buf, bool compressed,
209 size_t size, struct pstore_info *psi);
210 int (*write_buf_user)(enum pstore_type_id type, 199 int (*write_buf_user)(enum pstore_type_id type,
211 enum kmsg_dump_reason reason, u64 *id, 200 enum kmsg_dump_reason reason, u64 *id,
212 unsigned int part, const char __user *buf, 201 unsigned int part, const char __user *buf,