Greg Kroah-Hartman | b244131 | 2017-11-01 15:07:57 +0100 | [diff] [blame] | 1 | /* SPDX-License-Identifier: GPL-2.0 */ |
Jeff Layton | 80aafd5 | 2017-07-24 06:22:16 -0400 | [diff] [blame] | 2 | /* |
| 3 | * See Documentation/errseq.rst and lib/errseq.c |
| 4 | */ |
Jeff Layton | 84cbada | 2017-07-06 07:02:24 -0400 | [diff] [blame] | 5 | #ifndef _LINUX_ERRSEQ_H |
| 6 | #define _LINUX_ERRSEQ_H |
| 7 | |
Jeff Layton | 84cbada | 2017-07-06 07:02:24 -0400 | [diff] [blame] | 8 | typedef u32 errseq_t; |
| 9 | |
Jeff Layton | 3acdfd2 | 2017-07-24 06:22:15 -0400 | [diff] [blame] | 10 | errseq_t errseq_set(errseq_t *eseq, int err); |
Jeff Layton | 84cbada | 2017-07-06 07:02:24 -0400 | [diff] [blame] | 11 | errseq_t errseq_sample(errseq_t *eseq); |
| 12 | int errseq_check(errseq_t *eseq, errseq_t since); |
| 13 | int errseq_check_and_advance(errseq_t *eseq, errseq_t *since); |
| 14 | #endif |