1d1fa59e9SXin LI /* $NetBSD: tmpfs_vnops.h,v 1.7 2005/12/03 17:34:44 christos Exp $ */ 2d1fa59e9SXin LI 3d1fa59e9SXin LI /* 4d1fa59e9SXin LI * Copyright (c) 2005 The NetBSD Foundation, Inc. 5d1fa59e9SXin LI * All rights reserved. 6d1fa59e9SXin LI * 7d1fa59e9SXin LI * This code is derived from software contributed to The NetBSD Foundation 8d1fa59e9SXin LI * by Julio M. Merino Vidal, developed as part of Google's Summer of Code 9d1fa59e9SXin LI * 2005 program. 10d1fa59e9SXin LI * 11d1fa59e9SXin LI * Redistribution and use in source and binary forms, with or without 12d1fa59e9SXin LI * modification, are permitted provided that the following conditions 13d1fa59e9SXin LI * are met: 14d1fa59e9SXin LI * 1. Redistributions of source code must retain the above copyright 15d1fa59e9SXin LI * notice, this list of conditions and the following disclaimer. 16d1fa59e9SXin LI * 2. Redistributions in binary form must reproduce the above copyright 17d1fa59e9SXin LI * notice, this list of conditions and the following disclaimer in the 18d1fa59e9SXin LI * documentation and/or other materials provided with the distribution. 19d1fa59e9SXin LI * 3. All advertising materials mentioning features or use of this software 20d1fa59e9SXin LI * must display the following acknowledgement: 21d1fa59e9SXin LI * This product includes software developed by the NetBSD 22d1fa59e9SXin LI * Foundation, Inc. and its contributors. 23d1fa59e9SXin LI * 4. Neither the name of The NetBSD Foundation nor the names of its 24d1fa59e9SXin LI * contributors may be used to endorse or promote products derived 25d1fa59e9SXin LI * from this software without specific prior written permission. 26d1fa59e9SXin LI * 27d1fa59e9SXin LI * THIS SOFTWARE IS PROVIDED BY THE NETBSD FOUNDATION, INC. AND CONTRIBUTORS 28d1fa59e9SXin LI * ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED 29d1fa59e9SXin LI * TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR 30d1fa59e9SXin LI * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE FOUNDATION OR CONTRIBUTORS 31d1fa59e9SXin LI * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR 32d1fa59e9SXin LI * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF 33d1fa59e9SXin LI * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS 34d1fa59e9SXin LI * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN 35d1fa59e9SXin LI * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) 36d1fa59e9SXin LI * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE 37d1fa59e9SXin LI * POSSIBILITY OF SUCH DAMAGE. 38d1fa59e9SXin LI * 39d1fa59e9SXin LI * $FreeBSD$ 40d1fa59e9SXin LI */ 41d1fa59e9SXin LI 42d1fa59e9SXin LI #ifndef _FS_TMPFS_TMPFS_VNOPS_H_ 43d1fa59e9SXin LI #define _FS_TMPFS_TMPFS_VNOPS_H_ 44d1fa59e9SXin LI 45d1fa59e9SXin LI #if !defined(_KERNEL) 46d1fa59e9SXin LI #error not supposed to be exposed to userland. 47d1fa59e9SXin LI #endif 48d1fa59e9SXin LI 49d1fa59e9SXin LI /* --------------------------------------------------------------------- */ 50d1fa59e9SXin LI 51d1fa59e9SXin LI /* 52d1fa59e9SXin LI * Declarations for tmpfs_vnops.c. 53d1fa59e9SXin LI */ 54d1fa59e9SXin LI 55d1fa59e9SXin LI extern struct vop_vector tmpfs_vnodeop_entries; 56d1fa59e9SXin LI 57d1fa59e9SXin LI vop_cachedlookup_t tmpfs_lookup; 58d1fa59e9SXin LI vop_create_t tmpfs_create; 59d1fa59e9SXin LI vop_mknod_t tmpfs_mknod; 60d1fa59e9SXin LI vop_open_t tmpfs_open; 61d1fa59e9SXin LI vop_close_t tmpfs_close; 62d1fa59e9SXin LI vop_access_t tmpfs_access; 63d1fa59e9SXin LI vop_getattr_t tmpfs_getattr; 64d1fa59e9SXin LI vop_setattr_t tmpfs_setattr; 65d1fa59e9SXin LI vop_read_t tmpfs_read; 66d1fa59e9SXin LI vop_write_t tmpfs_write; 67d1fa59e9SXin LI vop_fsync_t tmpfs_fsync; 68d1fa59e9SXin LI vop_remove_t tmpfs_remove; 69d1fa59e9SXin LI vop_link_t tmpfs_link; 70d1fa59e9SXin LI vop_rename_t tmpfs_rename; 71d1fa59e9SXin LI vop_mkdir_t tmpfs_mkdir; 72d1fa59e9SXin LI vop_rmdir_t tmpfs_rmdir; 73d1fa59e9SXin LI vop_symlink_t tmpfs_symlink; 74d1fa59e9SXin LI vop_readdir_t tmpfs_readdir; 75d1fa59e9SXin LI vop_readlink_t tmpfs_readlink; 76d1fa59e9SXin LI vop_inactive_t tmpfs_inactive; 77d1fa59e9SXin LI vop_reclaim_t tmpfs_reclaim; 78d1fa59e9SXin LI vop_print_t tmpfs_print; 79d1fa59e9SXin LI vop_pathconf_t tmpfs_pathconf; 80d1fa59e9SXin LI vop_advlock_t tmpfs_advlock; 81d1fa59e9SXin LI vop_vptofh_t tmpfs_vptofh; 82d1fa59e9SXin LI 83d1fa59e9SXin LI /* --------------------------------------------------------------------- */ 84d1fa59e9SXin LI 85d1fa59e9SXin LI #endif /* _FS_TMPFS_TMPFS_VNOPS_H_ */ 86