xref: /dflybsd-src/sys/vfs/tmpfs/tmpfs_vnops.h (revision 7a2de9a42eb7af2d2c40f327e088e6c88489241a)
1*7a2de9a4SMatthew Dillon /*	$NetBSD: tmpfs_vnops.h,v 1.7 2005/12/03 17:34:44 christos Exp $	*/
2*7a2de9a4SMatthew Dillon 
3*7a2de9a4SMatthew Dillon /*-
4*7a2de9a4SMatthew Dillon  * Copyright (c) 2005 The NetBSD Foundation, Inc.
5*7a2de9a4SMatthew Dillon  * All rights reserved.
6*7a2de9a4SMatthew Dillon  *
7*7a2de9a4SMatthew Dillon  * This code is derived from software contributed to The NetBSD Foundation
8*7a2de9a4SMatthew Dillon  * by Julio M. Merino Vidal, developed as part of Google's Summer of Code
9*7a2de9a4SMatthew Dillon  * 2005 program.
10*7a2de9a4SMatthew Dillon  *
11*7a2de9a4SMatthew Dillon  * Redistribution and use in source and binary forms, with or without
12*7a2de9a4SMatthew Dillon  * modification, are permitted provided that the following conditions
13*7a2de9a4SMatthew Dillon  * are met:
14*7a2de9a4SMatthew Dillon  * 1. Redistributions of source code must retain the above copyright
15*7a2de9a4SMatthew Dillon  *    notice, this list of conditions and the following disclaimer.
16*7a2de9a4SMatthew Dillon  * 2. Redistributions in binary form must reproduce the above copyright
17*7a2de9a4SMatthew Dillon  *    notice, this list of conditions and the following disclaimer in the
18*7a2de9a4SMatthew Dillon  *    documentation and/or other materials provided with the distribution.
19*7a2de9a4SMatthew Dillon  *
20*7a2de9a4SMatthew Dillon  * THIS SOFTWARE IS PROVIDED BY THE NETBSD FOUNDATION, INC. AND CONTRIBUTORS
21*7a2de9a4SMatthew Dillon  * ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
22*7a2de9a4SMatthew Dillon  * TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
23*7a2de9a4SMatthew Dillon  * PURPOSE ARE DISCLAIMED.  IN NO EVENT SHALL THE FOUNDATION OR CONTRIBUTORS
24*7a2de9a4SMatthew Dillon  * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
25*7a2de9a4SMatthew Dillon  * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
26*7a2de9a4SMatthew Dillon  * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
27*7a2de9a4SMatthew Dillon  * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
28*7a2de9a4SMatthew Dillon  * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
29*7a2de9a4SMatthew Dillon  * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
30*7a2de9a4SMatthew Dillon  * POSSIBILITY OF SUCH DAMAGE.
31*7a2de9a4SMatthew Dillon  *
32*7a2de9a4SMatthew Dillon  * $FreeBSD: src/sys/fs/tmpfs/tmpfs_vnops.h,v 1.3 2008/09/03 18:53:48 delphij Exp $
33*7a2de9a4SMatthew Dillon  */
34*7a2de9a4SMatthew Dillon 
35*7a2de9a4SMatthew Dillon #ifndef _VFS_TMPFS_TMPFS_VNOPS_H_
36*7a2de9a4SMatthew Dillon #define _VFS_TMPFS_TMPFS_VNOPS_H_
37*7a2de9a4SMatthew Dillon 
38*7a2de9a4SMatthew Dillon #if !defined(_KERNEL)
39*7a2de9a4SMatthew Dillon #error not supposed to be exposed to userland.
40*7a2de9a4SMatthew Dillon #endif
41*7a2de9a4SMatthew Dillon 
42*7a2de9a4SMatthew Dillon /* --------------------------------------------------------------------- */
43*7a2de9a4SMatthew Dillon 
44*7a2de9a4SMatthew Dillon extern struct vop_ops tmpfs_vnode_vops;
45*7a2de9a4SMatthew Dillon extern struct vop_ops tmpfs_fifo_vops;
46*7a2de9a4SMatthew Dillon 
47*7a2de9a4SMatthew Dillon /*
48*7a2de9a4SMatthew Dillon  * Declarations for tmpfs_vnops.c.
49*7a2de9a4SMatthew Dillon  */
50*7a2de9a4SMatthew Dillon 
51*7a2de9a4SMatthew Dillon int tmpfs_access(struct vop_access_args *);
52*7a2de9a4SMatthew Dillon int tmpfs_getattr(struct vop_getattr_args *);
53*7a2de9a4SMatthew Dillon int tmpfs_setattr(struct vop_setattr_args *);
54*7a2de9a4SMatthew Dillon int tmpfs_reclaim(struct vop_reclaim_args *);
55*7a2de9a4SMatthew Dillon 
56*7a2de9a4SMatthew Dillon /* --------------------------------------------------------------------- */
57*7a2de9a4SMatthew Dillon 
58*7a2de9a4SMatthew Dillon #endif /* _VFS_TMPFS_TMPFS_VNOPS_H_ */
59