1*679926adSchristos /* $NetBSD: compat_110_mod.c,v 1.2 2024/05/20 01:30:34 christos Exp $ */
2381b1356Schristos
3381b1356Schristos /*-
4381b1356Schristos * Copyright (c) 2019 The NetBSD Foundation, Inc.
5381b1356Schristos * All rights reserved.
6381b1356Schristos *
7381b1356Schristos * This code is derived from software developed for The NetBSD Foundation
8381b1356Schristos * by Paul Goyette
9381b1356Schristos *
10381b1356Schristos * Redistribution and use in source and binary forms, with or without
11381b1356Schristos * modification, are permitted provided that the following conditions
12381b1356Schristos * are met:
13381b1356Schristos * 1. Redistributions of source code must retain the above copyright
14381b1356Schristos * notice, this list of conditions and the following disclaimer.
15381b1356Schristos * 2. Redistributions in binary form must reproduce the above copyright
16381b1356Schristos * notice, this list of conditions and the following disclaimer in the
17381b1356Schristos * documentation and/or other materials provided with the distribution.
18381b1356Schristos *
19381b1356Schristos * THIS SOFTWARE IS PROVIDED BY THE NETBSD FOUNDATION, INC. AND CONTRIBUTORS
20381b1356Schristos * ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
21381b1356Schristos * TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
22381b1356Schristos * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE FOUNDATION OR CONTRIBUTORS
23381b1356Schristos * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
24381b1356Schristos * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
25381b1356Schristos * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
26381b1356Schristos * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
27381b1356Schristos * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
28381b1356Schristos * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
29381b1356Schristos * POSSIBILITY OF SUCH DAMAGE.
30381b1356Schristos */
31381b1356Schristos
32381b1356Schristos /*
33381b1356Schristos * Linkage for the compat module: spaghetti.
34381b1356Schristos */
35381b1356Schristos
36381b1356Schristos #if defined(_KERNEL_OPT)
37381b1356Schristos #include "opt_compat_netbsd.h"
38381b1356Schristos #endif
39381b1356Schristos
40381b1356Schristos #include <sys/cdefs.h>
41*679926adSchristos __KERNEL_RCSID(0, "$NetBSD: compat_110_mod.c,v 1.2 2024/05/20 01:30:34 christos Exp $");
42381b1356Schristos
43381b1356Schristos #include <sys/systm.h>
44381b1356Schristos #include <sys/module.h>
45381b1356Schristos
46381b1356Schristos #include <compat/common/compat_util.h>
47381b1356Schristos #include <compat/common/compat_mod.h>
48381b1356Schristos
49381b1356Schristos int
compat_110_init(void)50381b1356Schristos compat_110_init(void)
51381b1356Schristos {
52*679926adSchristos return 0;
53381b1356Schristos }
54381b1356Schristos
55381b1356Schristos int
compat_110_fini(void)56381b1356Schristos compat_110_fini(void)
57381b1356Schristos {
58*679926adSchristos return 0;
59381b1356Schristos }
60381b1356Schristos
61381b1356Schristos MODULE(MODULE_CLASS_EXEC, compat_110, NULL);
62381b1356Schristos
63381b1356Schristos static int
compat_110_modcmd(modcmd_t cmd,void * arg)64381b1356Schristos compat_110_modcmd(modcmd_t cmd, void *arg)
65381b1356Schristos {
66381b1356Schristos
67381b1356Schristos switch (cmd) {
68381b1356Schristos case MODULE_CMD_INIT:
69381b1356Schristos return compat_110_init();
70381b1356Schristos
71381b1356Schristos case MODULE_CMD_FINI:
72381b1356Schristos return compat_110_fini();
73381b1356Schristos
74381b1356Schristos default:
75381b1356Schristos return ENOTTY;
76381b1356Schristos }
77381b1356Schristos }
78