1*f8afa790Spgoyette /* $NetBSD: nfs_clmodule.c,v 1.1 2016/11/18 22:41:19 pgoyette Exp $ */
2*f8afa790Spgoyette
3*f8afa790Spgoyette /*-
4*f8afa790Spgoyette * Copyright (c) 2016 The NetBSD Foundation, Inc.
5*f8afa790Spgoyette * All rights reserved.
6*f8afa790Spgoyette *
7*f8afa790Spgoyette * This code is derived from software contributed to The NetBSD Foundation
8*f8afa790Spgoyette * by Paul Goyette
9*f8afa790Spgoyette *
10*f8afa790Spgoyette * Redistribution and use in source and binary forms, with or without
11*f8afa790Spgoyette * modification, are permitted provided that the following conditions
12*f8afa790Spgoyette * are met:
13*f8afa790Spgoyette * 1. Redistributions of source code must retain the above copyright
14*f8afa790Spgoyette * notice, this list of conditions and the following disclaimer.
15*f8afa790Spgoyette * 2. Redistributions in binary form must reproduce the above copyright
16*f8afa790Spgoyette * notice, this list of conditions and the following disclaimer in the
17*f8afa790Spgoyette * documentation and/or other materials provided with the distribution.
18*f8afa790Spgoyette *
19*f8afa790Spgoyette * THIS SOFTWARE IS PROVIDED BY THE NETBSD FOUNDATION, INC. AND CONTRIBUTORS
20*f8afa790Spgoyette * ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
21*f8afa790Spgoyette * TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
22*f8afa790Spgoyette * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE FOUNDATION OR CONTRIBUTORS
23*f8afa790Spgoyette * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
24*f8afa790Spgoyette * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
25*f8afa790Spgoyette * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
26*f8afa790Spgoyette * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
27*f8afa790Spgoyette * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
28*f8afa790Spgoyette * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
29*f8afa790Spgoyette * POSSIBILITY OF SUCH DAMAGE.
30*f8afa790Spgoyette */
31*f8afa790Spgoyette
32*f8afa790Spgoyette #include <sys/module.h>
33*f8afa790Spgoyette #include <sys/param.h>
34*f8afa790Spgoyette
35*f8afa790Spgoyette MODULE(MODULE_CLASS_MISC, nfs_client, "nfs_common,sysmon_taskq");
36*f8afa790Spgoyette
37*f8afa790Spgoyette static int
nfs_client_modcmd(modcmd_t cmd,void * opaque)38*f8afa790Spgoyette nfs_client_modcmd(modcmd_t cmd, void *opaque)
39*f8afa790Spgoyette {
40*f8afa790Spgoyette
41*f8afa790Spgoyette switch (cmd) {
42*f8afa790Spgoyette case MODULE_CMD_INIT:
43*f8afa790Spgoyette case MODULE_CMD_FINI:
44*f8afa790Spgoyette return 0;
45*f8afa790Spgoyette default:
46*f8afa790Spgoyette return ENOTTY;
47*f8afa790Spgoyette }
48*f8afa790Spgoyette }
49