xref: /freebsd/sys/sys/exterr_cat.h (revision 874cdf6af695c42d561647f7165c99c2d3df0faa)
1 /*-
2  * SPDX-License-Identifier: BSD-2-Clause
3  *
4  * Copyright (c) 2025 The FreeBSD Foundation
5  * All rights reserved.
6  *
7  * This software were developed by Konstantin Belousov <kib@FreeBSD.org>
8  * under sponsorship from the FreeBSD Foundation.
9  */
10 
11 /*
12  * The category identifiers for the extended errors.
13  * The ids participate in ABI between kernel and libc, so they must
14  * never be reused or changed.  Only new ids can be added.
15  *
16  * After adding a new category id, run
17  * tools/build/make_libc_exterr_cat_filenames.sh
18  * from the top of the source tree, and commit updated file
19  * lib/libc/gen/exterr_cat_filenames.h
20  */
21 
22 #ifndef _SYS_EXTERR_CAT_H_
23 #define	_SYS_EXTERR_CAT_H_
24 
25 #define	EXTERR_CAT_MMAP		1
26 #define	EXTERR_CAT_FILEDESC	2
27 #define	EXTERR_KTRACE		3	/* To allow inclusion of this
28 					   file into kern_ktrace.c */
29 #define	EXTERR_CAT_FUSE_VNOPS	4
30 #define	EXTERR_CAT_INOTIFY	5
31 #define	EXTERR_CAT_GENIO	6
32 #define	EXTERR_CAT_BRIDGE	7
33 #define	EXTERR_CAT_SWAP		8
34 #define	EXTERR_CAT_VFSSYSCALL	9
35 #define	EXTERR_CAT_VFSBIO	10
36 #define	EXTERR_CAT_GEOMVFS	11
37 #define	EXTERR_CAT_GEOM		12
38 #define	EXTERR_CAT_FUSE_VFS	13
39 #define	EXTERR_CAT_FUSE_DEVICE	14
40 
41 #endif
42 
43