Use balloc to extend Ifile.
[unix-history] / usr / src / sys / ufs / lfs / lfs_extern.h
CommitLineData
8e833d0b
KB
1/*-
2 * Copyright (c) 1991 The Regents of the University of California.
3 * All rights reserved.
4 *
5 * %sccs.include.redist.c%
6 *
2967896f 7 * @(#)lfs_extern.h 7.22 (Berkeley) %G%
8e833d0b
KB
8 */
9
10struct fid;
ffcee610 11struct mount;
275ca4f0 12struct nameidata;
8e833d0b 13struct proc;
8a675605
KB
14struct statfs;
15struct timeval;
0308fc84 16struct inode;
8a675605 17struct uio;
1872b7d4 18struct mbuf;
8e833d0b 19
95c0d52a
KB
20__BEGIN_DECLS
21u_long cksum __P((void *, size_t)); /* XXX */
9188d9ae 22int lfs_balloc __P((struct vnode *, u_long, daddr_t, struct buf **));
9342689a 23int lfs_blkatoff __P((struct vop_blkatoff_args *));
9342689a 24int lfs_bwrite __P((struct vop_bwrite_args *));
b5262e87 25int lfs_check __P((struct vnode *, daddr_t));
dd614509 26int lfs_close __P((struct vop_close_args *));
3ce71481 27int lfs_create __P((struct vop_create_args *));
1872b7d4
KM
28int lfs_fhtovp __P((struct mount *, struct fid *, struct mbuf *,
29 struct vnode **, int *, struct ucred **));
9342689a 30int lfs_fsync __P((struct vop_fsync_args *));
b5262e87 31int lfs_getattr __P((struct vop_getattr_args *));
4ebd1389
KB
32struct dinode *
33 lfs_ifind __P((struct lfs *, ino_t, struct dinode *));
9342689a 34int lfs_inactive __P((struct vop_inactive_args *));
8e833d0b 35int lfs_init __P((void));
3ce71481 36int lfs_link __P((struct vop_link_args *));
95c0d52a 37int lfs_makeinode __P((int, struct nameidata *, struct inode **));
3ce71481
KB
38int lfs_mkdir __P((struct vop_mkdir_args *));
39int lfs_mknod __P((struct vop_mknod_args *));
61a9b5a2
KB
40int lfs_mount __P((struct mount *,
41 char *, caddr_t, struct nameidata *, struct proc *));
95c0d52a 42int lfs_mountroot __P((void));
b5262e87
KB
43struct buf *
44 lfs_newbuf __P((struct vnode *, daddr_t, size_t));
9342689a 45int lfs_read __P((struct vop_read_args *));
3ce71481
KB
46int lfs_remove __P((struct vop_remove_args *));
47int lfs_rmdir __P((struct vop_rmdir_args *));
48int lfs_rename __P((struct vop_rename_args *));
ffcee610 49int lfs_root __P((struct mount *, struct vnode **));
4ebd1389
KB
50void lfs_seglock __P((struct lfs *));
51void lfs_segunlock __P((struct lfs *));
61a9b5a2
KB
52int lfs_segwrite __P((struct mount *, int));
53int lfs_statfs __P((struct mount *, struct statfs *, struct proc *));
3ce71481 54int lfs_symlink __P((struct vop_symlink_args *));
4ebd1389 55int lfs_sync __P((struct mount *, int, struct ucred *, struct proc *));
9342689a 56int lfs_truncate __P((struct vop_truncate_args *));
61a9b5a2 57int lfs_unmount __P((struct mount *, int, struct proc *));
9342689a
JH
58int lfs_update __P((struct vop_update_args *));
59int lfs_valloc __P((struct vop_valloc_args *));
61a9b5a2 60int lfs_vcreate __P((struct mount *, ino_t, struct vnode **));
9596e280 61int lfs_vfree __P((struct vop_vfree_args *));
a5af63c3 62int lfs_vflush __P((struct vnode *));
4ebd1389 63int lfs_vget __P((struct mount *, ino_t, struct vnode **));
ffcee610 64int lfs_vptofh __P((struct vnode *, struct fid *));
9342689a 65int lfs_write __P((struct vop_write_args *));
8e833d0b 66#ifdef DEBUG
61a9b5a2 67void lfs_dump_dinode __P((struct dinode *));
280276e9 68void lfs_dump_super __P((struct lfs *));
8e833d0b 69#endif
95c0d52a 70__END_DECLS
9596e280
JH
71extern int (**lfs_vnodeop_p)();
72extern int (**lfs_specop_p)();
7ba38242 73#ifdef FIFO
9342689a 74extern int (**lfs_fifoop_p)();
4c9970f4 75#define LFS_FIFOOPS lfs_fifoop_p
7ba38242
KM
76#else
77#define LFS_FIFOOPS NULL
78#endif