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