tmpfs_vnops.h revision 1.9
11.9Sjmmv/*	$NetBSD: tmpfs_vnops.h,v 1.9 2006/11/09 16:20:56 jmmv Exp $	*/
21.1Sjmmv
31.1Sjmmv/*
41.9Sjmmv * Copyright (c) 2005, 2006 The NetBSD Foundation, Inc.
51.1Sjmmv * All rights reserved.
61.1Sjmmv *
71.1Sjmmv * This code is derived from software contributed to The NetBSD Foundation
81.4Sjmmv * by Julio M. Merino Vidal, developed as part of Google's Summer of Code
91.4Sjmmv * 2005 program.
101.1Sjmmv *
111.1Sjmmv * Redistribution and use in source and binary forms, with or without
121.1Sjmmv * modification, are permitted provided that the following conditions
131.1Sjmmv * are met:
141.1Sjmmv * 1. Redistributions of source code must retain the above copyright
151.1Sjmmv *    notice, this list of conditions and the following disclaimer.
161.1Sjmmv * 2. Redistributions in binary form must reproduce the above copyright
171.1Sjmmv *    notice, this list of conditions and the following disclaimer in the
181.1Sjmmv *    documentation and/or other materials provided with the distribution.
191.1Sjmmv * 3. All advertising materials mentioning features or use of this software
201.1Sjmmv *    must display the following acknowledgement:
211.1Sjmmv *        This product includes software developed by the NetBSD
221.1Sjmmv *        Foundation, Inc. and its contributors.
231.1Sjmmv * 4. Neither the name of The NetBSD Foundation nor the names of its
241.1Sjmmv *    contributors may be used to endorse or promote products derived
251.1Sjmmv *    from this software without specific prior written permission.
261.1Sjmmv *
271.1Sjmmv * THIS SOFTWARE IS PROVIDED BY THE NETBSD FOUNDATION, INC. AND CONTRIBUTORS
281.1Sjmmv * ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
291.1Sjmmv * TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
301.1Sjmmv * PURPOSE ARE DISCLAIMED.  IN NO EVENT SHALL THE FOUNDATION OR CONTRIBUTORS
311.1Sjmmv * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
321.1Sjmmv * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
331.1Sjmmv * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
341.1Sjmmv * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
351.1Sjmmv * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
361.1Sjmmv * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
371.1Sjmmv * POSSIBILITY OF SUCH DAMAGE.
381.1Sjmmv */
391.1Sjmmv
401.7Schristos#ifndef _FS_TMPFS_TMPFS_VNOPS_H_
411.7Schristos#define _FS_TMPFS_TMPFS_VNOPS_H_
421.1Sjmmv
431.1Sjmmv#if !defined(_KERNEL)
441.7Schristos#error not supposed to be exposed to userland.
451.1Sjmmv#endif
461.1Sjmmv
471.1Sjmmv#include <miscfs/genfs/genfs.h>
481.1Sjmmv
491.1Sjmmv/* --------------------------------------------------------------------- */
501.1Sjmmv
511.1Sjmmv/*
521.1Sjmmv * Declarations for tmpfs_vnops.c.
531.1Sjmmv */
541.1Sjmmv
551.1Sjmmvextern int (**tmpfs_vnodeop_p)(void *);
561.1Sjmmv
571.1Sjmmvint	tmpfs_lookup		(void *);
581.1Sjmmvint	tmpfs_create		(void *);
591.1Sjmmvint	tmpfs_mknod		(void *);
601.1Sjmmvint	tmpfs_open		(void *);
611.1Sjmmvint	tmpfs_close		(void *);
621.1Sjmmvint	tmpfs_access		(void *);
631.1Sjmmvint	tmpfs_getattr		(void *);
641.1Sjmmvint	tmpfs_setattr		(void *);
651.1Sjmmvint	tmpfs_read		(void *);
661.1Sjmmvint	tmpfs_write		(void *);
671.1Sjmmv#define	tmpfs_fcntl		genfs_fcntl
681.1Sjmmv#define	tmpfs_ioctl		genfs_enoioctl
691.1Sjmmv#define	tmpfs_poll		genfs_poll
701.8Sjmmv#define	tmpfs_kqfilter		genfs_kqfilter
711.1Sjmmv#define	tmpfs_revoke		genfs_revoke
721.1Sjmmv#define	tmpfs_mmap		genfs_mmap
731.1Sjmmvint	tmpfs_fsync		(void *);
741.1Sjmmv#define	tmpfs_seek		genfs_seek
751.1Sjmmvint	tmpfs_remove		(void *);
761.1Sjmmvint	tmpfs_link		(void *);
771.1Sjmmvint	tmpfs_rename		(void *);
781.1Sjmmvint	tmpfs_mkdir		(void *);
791.1Sjmmvint	tmpfs_rmdir		(void *);
801.1Sjmmvint	tmpfs_symlink		(void *);
811.1Sjmmvint	tmpfs_readdir		(void *);
821.1Sjmmvint	tmpfs_readlink		(void *);
831.1Sjmmv#define	tmpfs_abortop		genfs_abortop
841.1Sjmmvint	tmpfs_inactive		(void *);
851.1Sjmmvint	tmpfs_reclaim		(void *);
861.1Sjmmv#define	tmpfs_lock		genfs_lock
871.1Sjmmv#define	tmpfs_unlock		genfs_unlock
881.1Sjmmv#define	tmpfs_bmap		genfs_eopnotsupp
891.1Sjmmv#define	tmpfs_strategy		genfs_eopnotsupp
901.1Sjmmvint	tmpfs_print		(void *);
911.1Sjmmvint	tmpfs_pathconf		(void *);
921.1Sjmmv#define	tmpfs_islocked		genfs_islocked
931.5Sjmmvint	tmpfs_advlock		(void *);
941.1Sjmmv#define	tmpfs_lease		genfs_lease_check
951.1Sjmmv#define	tmpfs_bwrite		genfs_nullop
961.1Sjmmvint	tmpfs_getpages		(void *);
971.3Syamtint	tmpfs_putpages		(void *);
981.1Sjmmv
991.1Sjmmv/* --------------------------------------------------------------------- */
1001.1Sjmmv
1011.7Schristos#endif /* _FS_TMPFS_TMPFS_VNOPS_H_ */
102