proc->thread stage 4: rework the VFS and DEVICE subsystems to take thread
[dragonfly.git] / sys / vfs / ufs / ufs_extern.h
CommitLineData
984263bc
MD
1/*-
2 * Copyright (c) 1991, 1993, 1994
3 * The Regents of the University of California. All rights reserved.
4 *
5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions
7 * are met:
8 * 1. Redistributions of source code must retain the above copyright
9 * notice, this list of conditions and the following disclaimer.
10 * 2. Redistributions in binary form must reproduce the above copyright
11 * notice, this list of conditions and the following disclaimer in the
12 * documentation and/or other materials provided with the distribution.
13 * 3. All advertising materials mentioning features or use of this software
14 * must display the following acknowledgement:
15 * This product includes software developed by the University of
16 * California, Berkeley and its contributors.
17 * 4. Neither the name of the University nor the names of its contributors
18 * may be used to endorse or promote products derived from this software
19 * without specific prior written permission.
20 *
21 * THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
22 * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
23 * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
24 * ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
25 * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
26 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
27 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
28 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
29 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
30 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
31 * SUCH DAMAGE.
32 *
33 * @(#)ufs_extern.h 8.10 (Berkeley) 5/14/95
34 * $FreeBSD: src/sys/ufs/ufs/ufs_extern.h,v 1.27.2.1 2000/12/28 11:01:46 ps Exp $
dadab5e9 35 * $DragonFly: src/sys/vfs/ufs/ufs_extern.h,v 1.3 2003/06/25 03:56:12 dillon Exp $
984263bc
MD
36 */
37
38#ifndef _UFS_UFS_EXTERN_H_
39#define _UFS_UFS_EXTERN_H_
40
41struct componentname;
42struct direct;
43struct indir;
44struct inode;
45struct mount;
46struct proc;
47struct sockaddr;
48struct ucred;
49struct ufid;
50struct vfsconf;
51struct vnode;
52struct vop_bmap_args;
53struct vop_cachedlookup_args;
54struct vop_generic_args;
55struct vop_inactive_args;
56struct vop_reclaim_args;
57
58int ufs_vnoperate __P((struct vop_generic_args *));
59int ufs_vnoperatefifo __P((struct vop_generic_args *));
60int ufs_vnoperatespec __P((struct vop_generic_args *));
61
62int ufs_bmap __P((struct vop_bmap_args *));
63int ufs_bmaparray __P((struct vnode *, daddr_t, daddr_t *, struct indir *,
64 int *, int *, int *));
65int ufs_check_export __P((struct mount *, struct sockaddr *,
66 int *, struct ucred **));
67int ufs_fhtovp(register struct mount *, struct ufid *, struct vnode **);
68int ufs_checkpath __P((struct inode *, struct inode *, struct ucred *));
69void ufs_dirbad __P((struct inode *, doff_t, char *));
70int ufs_dirbadentry __P((struct vnode *, struct direct *, int));
71int ufs_dirempty __P((struct inode *, ino_t, struct ucred *));
72void ufs_makedirentry __P((struct inode *, struct componentname *,
73 struct direct *));
74int ufs_direnter __P((struct vnode *, struct vnode *, struct direct *,
75 struct componentname *, struct buf *));
76int ufs_dirremove __P((struct vnode *, struct inode *, int, int));
77int ufs_dirrewrite __P((struct inode *, struct inode *, ino_t, int, int));
78int ufs_getlbns __P((struct vnode *, ufs_daddr_t, struct indir *, int *));
79struct vnode *
80 ufs_ihashget __P((dev_t, ino_t));
81void ufs_ihashinit __P((void));
82void ufs_ihashins __P((struct inode *));
83struct vnode *
84 ufs_ihashlookup __P((dev_t, ino_t));
85void ufs_ihashrem __P((struct inode *));
86int ufs_inactive __P((struct vop_inactive_args *));
87int ufs_init __P((struct vfsconf *));
88void ufs_itimes __P((struct vnode *vp));
89int ufs_lookup __P((struct vop_cachedlookup_args *));
90int ufs_reclaim __P((struct vop_reclaim_args *));
91int ufs_root __P((struct mount *, struct vnode **));
dadab5e9 92int ufs_start __P((struct mount *, int, struct thread *));
984263bc
MD
93int ufs_vinit __P((struct mount *, vop_t **, vop_t **, struct vnode **));
94
95/*
96 * Soft update function prototypes.
97 */
98void softdep_setup_directory_add __P((struct buf *, struct inode *, off_t,
99 long, struct buf *));
100void softdep_change_directoryentry_offset __P((struct inode *, caddr_t,
101 caddr_t, caddr_t, int));
102void softdep_setup_remove __P((struct buf *,struct inode *, struct inode *,
103 int));
104void softdep_setup_directory_change __P((struct buf *, struct inode *,
105 struct inode *, long, int));
106void softdep_change_linkcnt __P((struct inode *));
107int softdep_slowdown __P((struct vnode *));
108
109#endif /* !_UFS_UFS_EXTERN_H_ */