1*30e6ba44Schristos /* $NetBSD: nofifo_vnops.c,v 1.1 2020/05/16 00:43:15 christos Exp $ */ 2*30e6ba44Schristos 3*30e6ba44Schristos /* 4*30e6ba44Schristos * Redistribution and use in source and binary forms, with or without 5*30e6ba44Schristos * modification, are permitted provided that the following conditions 6*30e6ba44Schristos * are met: 7*30e6ba44Schristos * 1. Redistributions of source code must retain the above copyright 8*30e6ba44Schristos * notice, this list of conditions and the following disclaimer. 9*30e6ba44Schristos * 2. Redistributions in binary form must reproduce the above copyright 10*30e6ba44Schristos * notice, this list of conditions and the following disclaimer in the 11*30e6ba44Schristos * documentation and/or other materials provided with the distribution. 12*30e6ba44Schristos * 13*30e6ba44Schristos * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS 14*30e6ba44Schristos * OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED 15*30e6ba44Schristos * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE 16*30e6ba44Schristos * DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE 17*30e6ba44Schristos * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 18*30e6ba44Schristos * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR 19*30e6ba44Schristos * SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 20*30e6ba44Schristos * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 21*30e6ba44Schristos * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 22*30e6ba44Schristos * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 23*30e6ba44Schristos * SUCH DAMAGE. 24*30e6ba44Schristos */ 25*30e6ba44Schristos 26*30e6ba44Schristos #include <sys/cdefs.h> 27*30e6ba44Schristos __KERNEL_RCSID(0, "$NetBSD: nofifo_vnops.c,v 1.1 2020/05/16 00:43:15 christos Exp $"); 28*30e6ba44Schristos 29*30e6ba44Schristos #include <sys/systm.h> 30*30e6ba44Schristos #include <miscfs/genfs/genfs.h> 31*30e6ba44Schristos #include <miscfs/genfs/genfs_node.h> 32*30e6ba44Schristos 33*30e6ba44Schristos int (**fifo_vnodeop_p)(void *); 34*30e6ba44Schristos 35*30e6ba44Schristos const struct vnodeopv_entry_desc fifo_vnodeop_entries[] = { 36*30e6ba44Schristos { &vop_default_desc, vn_default_error }, 37*30e6ba44Schristos { &vop_putpages_desc, genfs_null_putpages }, 38*30e6ba44Schristos { NULL, NULL } 39*30e6ba44Schristos }; 40*30e6ba44Schristos 41*30e6ba44Schristos const struct vnodeopv_desc fifo_vnodeop_opv_desc = 42*30e6ba44Schristos { &fifo_vnodeop_p, fifo_vnodeop_entries }; 43*30e6ba44Schristos 44