blob: fc27777707688781d7f0ef38751dd2d9286fa919 [file] [log] [blame]
Greg Kroah-Hartmanb2441312017-11-01 15:07:57 +01001/* SPDX-License-Identifier: GPL-2.0 */
Jeff Layton80aafd52017-07-24 06:22:16 -04002/*
Matthew Wilcox14ebc282017-12-22 06:32:16 -08003 * See Documentation/core-api/errseq.rst and lib/errseq.c
Jeff Layton80aafd52017-07-24 06:22:16 -04004 */
Jeff Layton84cbada2017-07-06 07:02:24 -04005#ifndef _LINUX_ERRSEQ_H
6#define _LINUX_ERRSEQ_H
7
Jeff Layton84cbada2017-07-06 07:02:24 -04008typedef u32 errseq_t;
9
Jeff Layton3acdfd22017-07-24 06:22:15 -040010errseq_t errseq_set(errseq_t *eseq, int err);
Jeff Layton84cbada2017-07-06 07:02:24 -040011errseq_t errseq_sample(errseq_t *eseq);
12int errseq_check(errseq_t *eseq, errseq_t since);
13int errseq_check_and_advance(errseq_t *eseq, errseq_t *since);
14#endif