17a2de9a4SMatthew Dillon /* $NetBSD: tmpfs_vnops.h,v 1.7 2005/12/03 17:34:44 christos Exp $ */ 27a2de9a4SMatthew Dillon 37a2de9a4SMatthew Dillon /*- 47a2de9a4SMatthew Dillon * Copyright (c) 2005 The NetBSD Foundation, Inc. 57a2de9a4SMatthew Dillon * All rights reserved. 67a2de9a4SMatthew Dillon * 77a2de9a4SMatthew Dillon * This code is derived from software contributed to The NetBSD Foundation 87a2de9a4SMatthew Dillon * by Julio M. Merino Vidal, developed as part of Google's Summer of Code 97a2de9a4SMatthew Dillon * 2005 program. 107a2de9a4SMatthew Dillon * 117a2de9a4SMatthew Dillon * Redistribution and use in source and binary forms, with or without 127a2de9a4SMatthew Dillon * modification, are permitted provided that the following conditions 137a2de9a4SMatthew Dillon * are met: 147a2de9a4SMatthew Dillon * 1. Redistributions of source code must retain the above copyright 157a2de9a4SMatthew Dillon * notice, this list of conditions and the following disclaimer. 167a2de9a4SMatthew Dillon * 2. Redistributions in binary form must reproduce the above copyright 177a2de9a4SMatthew Dillon * notice, this list of conditions and the following disclaimer in the 187a2de9a4SMatthew Dillon * documentation and/or other materials provided with the distribution. 197a2de9a4SMatthew Dillon * 207a2de9a4SMatthew Dillon * THIS SOFTWARE IS PROVIDED BY THE NETBSD FOUNDATION, INC. AND CONTRIBUTORS 217a2de9a4SMatthew Dillon * ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED 227a2de9a4SMatthew Dillon * TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR 237a2de9a4SMatthew Dillon * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE FOUNDATION OR CONTRIBUTORS 247a2de9a4SMatthew Dillon * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR 257a2de9a4SMatthew Dillon * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF 267a2de9a4SMatthew Dillon * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS 277a2de9a4SMatthew Dillon * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN 287a2de9a4SMatthew Dillon * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) 297a2de9a4SMatthew Dillon * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE 307a2de9a4SMatthew Dillon * POSSIBILITY OF SUCH DAMAGE. 317a2de9a4SMatthew Dillon * 327a2de9a4SMatthew Dillon * $FreeBSD: src/sys/fs/tmpfs/tmpfs_vnops.h,v 1.3 2008/09/03 18:53:48 delphij Exp $ 337a2de9a4SMatthew Dillon */ 347a2de9a4SMatthew Dillon 357a2de9a4SMatthew Dillon #ifndef _VFS_TMPFS_TMPFS_VNOPS_H_ 367a2de9a4SMatthew Dillon #define _VFS_TMPFS_TMPFS_VNOPS_H_ 377a2de9a4SMatthew Dillon 387a2de9a4SMatthew Dillon #if !defined(_KERNEL) 397a2de9a4SMatthew Dillon #error not supposed to be exposed to userland. 407a2de9a4SMatthew Dillon #endif 417a2de9a4SMatthew Dillon 427a2de9a4SMatthew Dillon /* --------------------------------------------------------------------- */ 437a2de9a4SMatthew Dillon 447a2de9a4SMatthew Dillon extern struct vop_ops tmpfs_vnode_vops; 457a2de9a4SMatthew Dillon extern struct vop_ops tmpfs_fifo_vops; 469cd86db5SMatthew Dillon extern int tmpfs_bufcache_mode __read_mostly; 477a2de9a4SMatthew Dillon 487a2de9a4SMatthew Dillon /* 497a2de9a4SMatthew Dillon * Declarations for tmpfs_vnops.c. 507a2de9a4SMatthew Dillon */ 517a2de9a4SMatthew Dillon 527a2de9a4SMatthew Dillon int tmpfs_access(struct vop_access_args *); 537a2de9a4SMatthew Dillon int tmpfs_getattr(struct vop_getattr_args *); 54*de9bb133SMatthew Dillon int tmpfs_getattr_lite(struct vop_getattr_lite_args *); 557a2de9a4SMatthew Dillon int tmpfs_setattr(struct vop_setattr_args *); 567a2de9a4SMatthew Dillon int tmpfs_reclaim(struct vop_reclaim_args *); 577a2de9a4SMatthew Dillon 587a2de9a4SMatthew Dillon /* --------------------------------------------------------------------- */ 597a2de9a4SMatthew Dillon 607a2de9a4SMatthew Dillon #endif /* _VFS_TMPFS_TMPFS_VNOPS_H_ */ 61