diff options
author | Kees Cook <keescook@chromium.org> | 2017-05-20 01:29:10 +0300 |
---|---|---|
committer | Kees Cook <keescook@chromium.org> | 2017-05-31 20:13:44 +0300 |
commit | c7f3c595f6ff7a1cfbf7ac782722bf5173e27775 (patch) | |
tree | 7adaa468343cb5d9a45ce738d1fee91ca22dc489 /include/linux/pstore.h | |
parent | e581ca813a40a4ee53c862d8f6303f486c4b4c34 (diff) | |
download | linux-c7f3c595f6ff7a1cfbf7ac782722bf5173e27775.tar.xz |
pstore: Populate pstore record->time field
The current time will be initially available in the record->time field
for all pstore_read() and pstore_write() calls. Backends can either
update the field during read(), or use the field during write() instead
of fetching time themselves.
Signed-off-by: Kees Cook <keescook@chromium.org>
Diffstat (limited to 'include/linux/pstore.h')
-rw-r--r-- | include/linux/pstore.h | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/include/linux/pstore.h b/include/linux/pstore.h index e2233f50f428..61f806a7fe29 100644 --- a/include/linux/pstore.h +++ b/include/linux/pstore.h @@ -138,7 +138,10 @@ struct pstore_record { * memory allocation may be broken during an Oops. Regardless, * @buf must be proccesed or copied before returning. The * backend is also expected to write @id with something that - 8 can help identify this record to a future @erase callback. + * can help identify this record to a future @erase callback. + * The @time field will be prepopulated with the current time, + * when available. The @size field will have the size of data + * in @buf. * * Returns 0 on success, and non-zero on error. * |