11.1Spgoyette/* $NetBSD: nfs_module.c,v 1.1 2016/11/18 22:41:19 pgoyette Exp $ */ 21.1Spgoyette 31.1Spgoyette/*- 41.1Spgoyette * Copyright (c) 2016 The NetBSD Foundation, Inc. 51.1Spgoyette * All rights reserved. 61.1Spgoyette * 71.1Spgoyette * This code is derived from software contributed to The NetBSD Foundation 81.1Spgoyette * by Paul Goyette 91.1Spgoyette * 101.1Spgoyette * Redistribution and use in source and binary forms, with or without 111.1Spgoyette * modification, are permitted provided that the following conditions 121.1Spgoyette * are met: 131.1Spgoyette * 1. Redistributions of source code must retain the above copyright 141.1Spgoyette * notice, this list of conditions and the following disclaimer. 151.1Spgoyette * 2. Redistributions in binary form must reproduce the above copyright 161.1Spgoyette * notice, this list of conditions and the following disclaimer in the 171.1Spgoyette * documentation and/or other materials provided with the distribution. 181.1Spgoyette * 191.1Spgoyette * THIS SOFTWARE IS PROVIDED BY THE NETBSD FOUNDATION, INC. AND CONTRIBUTORS 201.1Spgoyette * ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED 211.1Spgoyette * TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR 221.1Spgoyette * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE FOUNDATION OR CONTRIBUTORS 231.1Spgoyette * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR 241.1Spgoyette * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF 251.1Spgoyette * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS 261.1Spgoyette * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN 271.1Spgoyette * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) 281.1Spgoyette * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE 291.1Spgoyette * POSSIBILITY OF SUCH DAMAGE. 301.1Spgoyette */ 311.1Spgoyette 321.1Spgoyette#include <sys/module.h> 331.1Spgoyette#include <sys/param.h> 341.1Spgoyette 351.1SpgoyetteMODULE(MODULE_CLASS_MISC, nfs_common, NULL); 361.1Spgoyette 371.1Spgoyettestatic int 381.1Spgoyettenfs_common_modcmd(modcmd_t cmd, void *opaque) 391.1Spgoyette{ 401.1Spgoyette 411.1Spgoyette switch (cmd) { 421.1Spgoyette case MODULE_CMD_INIT: 431.1Spgoyette case MODULE_CMD_FINI: 441.1Spgoyette return 0; 451.1Spgoyette default: 461.1Spgoyette return ENOTTY; 471.1Spgoyette } 481.1Spgoyette} 49