Change the kernel dev_t, representing a pointer to a specinfo structure,
[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 $
b13267a5 35 * $DragonFly: src/sys/vfs/ufs/ufs_extern.h,v 1.15 2006/09/10 01:26:41 dillon Exp $
984263bc
MD
36 */
37
50e58362
MD
38#ifndef _VFS_UFS_EXTERN_H_
39#define _VFS_UFS_EXTERN_H_
984263bc
MD
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;
e62afb5f 53struct vop_old_lookup_args;
984263bc
MD
54struct vop_generic_args;
55struct vop_inactive_args;
56struct vop_reclaim_args;
57
f719c866
DR
58int ufs_vnoperate(struct vop_generic_args *);
59int ufs_vnoperatefifo(struct vop_generic_args *);
60int ufs_vnoperatespec(struct vop_generic_args *);
984263bc 61
f719c866
DR
62int ufs_bmap(struct vop_bmap_args *);
63int ufs_bmaparray(struct vnode *, daddr_t, daddr_t *, struct indir *,
a6ee311a 64 int *, int *, int *);
f719c866 65int ufs_check_export(struct mount *, struct sockaddr *,
a6ee311a 66 int *, struct ucred **);
3ff2135f 67int ufs_fhtovp(struct mount *, struct ufid *, struct vnode **);
f719c866
DR
68int ufs_checkpath(struct inode *, struct inode *, struct ucred *);
69void ufs_dirbad(struct inode *, doff_t, char *);
70int ufs_dirbadentry(struct vnode *, struct direct *, int);
71int ufs_dirempty(struct inode *, ino_t, struct ucred *);
72void ufs_makedirentry(struct inode *, struct componentname *,
a6ee311a 73 struct direct *);
f719c866 74int ufs_direnter(struct vnode *, struct vnode *, struct direct *,
a6ee311a 75 struct componentname *, struct buf *);
f719c866
DR
76int ufs_dirremove(struct vnode *, struct inode *, int, int);
77int ufs_dirrewrite(struct inode *, struct inode *, ino_t, int, int);
78int ufs_getlbns(struct vnode *, ufs_daddr_t, struct indir *, int *);
984263bc 79struct vnode *
b13267a5
MD
80 ufs_ihashget(cdev_t, ino_t);
81int ufs_ihashcheck(cdev_t, ino_t);
f719c866 82void ufs_ihashinit(void);
3446c007 83int ufs_ihashins(struct inode *);
984263bc 84struct vnode *
b13267a5 85 ufs_ihashlookup(cdev_t, ino_t);
f719c866
DR
86void ufs_ihashrem(struct inode *);
87int ufs_inactive(struct vop_inactive_args *);
88int ufs_init(struct vfsconf *);
43c45e8f 89int ufs_uninit(struct vfsconf *);
f719c866 90void ufs_itimes(struct vnode *vp);
e62afb5f 91int ufs_lookup(struct vop_old_lookup_args *);
f719c866
DR
92int ufs_reclaim(struct vop_reclaim_args *);
93int ufs_root(struct mount *, struct vnode **);
94int ufs_start(struct mount *, int, struct thread *);
0961aa92 95int ufs_vinit(struct mount *, struct vnode **);
984263bc
MD
96
97/*
98 * Soft update function prototypes.
99 */
f719c866
DR
100void softdep_setup_directory_add(struct buf *, struct inode *, off_t,
101 ino_t, struct buf *);
102void softdep_change_directoryentry_offset(struct inode *, caddr_t,
a6ee311a 103 caddr_t, caddr_t, int);
f719c866 104void softdep_setup_remove(struct buf *,struct inode *, struct inode *,
a6ee311a 105 int);
f719c866
DR
106void softdep_setup_directory_change(struct buf *, struct inode *,
107 struct inode *, ino_t, int);
108void softdep_change_linkcnt(struct inode *);
109int softdep_slowdown(struct vnode *);
984263bc 110
50e58362 111#endif /* !_VFS_UFS_EXTERN_H_ */