1 /* $NetBSD: tmpfs_specops.h,v 1.6 2008/01/25 14:32:13 ad Exp $ */
4 * Copyright (c) 2005 The NetBSD Foundation, Inc.
7 * This code is derived from software contributed to The NetBSD Foundation
8 * by Julio M. Merino Vidal, developed as part of Google's Summer of Code
11 * Redistribution and use in source and binary forms, with or without
12 * modification, are permitted provided that the following conditions
14 * 1. Redistributions of source code must retain the above copyright
15 * notice, this list of conditions and the following disclaimer.
16 * 2. Redistributions in binary form must reproduce the above copyright
17 * notice, this list of conditions and the following disclaimer in the
18 * documentation and/or other materials provided with the distribution.
20 * THIS SOFTWARE IS PROVIDED BY THE NETBSD FOUNDATION, INC. AND CONTRIBUTORS
21 * ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
22 * TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
23 * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE FOUNDATION OR CONTRIBUTORS
24 * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
25 * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
26 * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
27 * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
28 * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
29 * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
30 * POSSIBILITY OF SUCH DAMAGE.
33 #ifndef _FS_TMPFS_TMPFS_SPECOPS_H_
34 #define _FS_TMPFS_TMPFS_SPECOPS_H_
37 #error not supposed to be exposed to userland.
40 #include <miscfs/specfs/specdev.h>
41 #include <fs/tmpfs/tmpfs_vnops.h>
43 /* --------------------------------------------------------------------- */
46 * Declarations for tmpfs_specops.c.
49 extern int (**tmpfs_specop_p
)(void *);
51 #define tmpfs_spec_lookup spec_lookup
52 #define tmpfs_spec_create spec_create
53 #define tmpfs_spec_mknod spec_mknod
54 #define tmpfs_spec_open spec_open
55 int tmpfs_spec_close (void *);
56 #define tmpfs_spec_access tmpfs_access
57 #define tmpfs_spec_getattr tmpfs_getattr
58 #define tmpfs_spec_setattr tmpfs_setattr
59 int tmpfs_spec_read (void *);
60 int tmpfs_spec_write (void *);
61 #define tmpfs_spec_fcntl tmpfs_fcntl
62 #define tmpfs_spec_ioctl spec_ioctl
63 #define tmpfs_spec_poll spec_poll
64 #define tmpfs_spec_kqfilter spec_kqfilter
65 #define tmpfs_spec_revoke spec_revoke
66 #define tmpfs_spec_mmap spec_mmap
67 #define tmpfs_spec_fsync spec_fsync
68 #define tmpfs_spec_seek spec_seek
69 #define tmpfs_spec_remove spec_remove
70 #define tmpfs_spec_link spec_link
71 #define tmpfs_spec_rename spec_rename
72 #define tmpfs_spec_mkdir spec_mkdir
73 #define tmpfs_spec_rmdir spec_rmdir
74 #define tmpfs_spec_symlink spec_symlink
75 #define tmpfs_spec_readdir spec_readdir
76 #define tmpfs_spec_readlink spec_readlink
77 #define tmpfs_spec_abortop spec_abortop
78 #define tmpfs_spec_inactive tmpfs_inactive
79 #define tmpfs_spec_reclaim tmpfs_reclaim
80 #define tmpfs_spec_lock tmpfs_lock
81 #define tmpfs_spec_unlock tmpfs_unlock
82 #define tmpfs_spec_bmap spec_bmap
83 #define tmpfs_spec_strategy spec_strategy
84 #define tmpfs_spec_print tmpfs_print
85 #define tmpfs_spec_pathconf spec_pathconf
86 #define tmpfs_spec_islocked tmpfs_islocked
87 #define tmpfs_spec_advlock spec_advlock
88 #define tmpfs_spec_bwrite vn_bwrite
89 #define tmpfs_spec_getpages spec_getpages
90 #define tmpfs_spec_putpages spec_putpages
92 /* --------------------------------------------------------------------- */
94 #endif /* _FS_TMPFS_TMPFS_SPECOPS_H_ */