Commit | Line | Data |
---|---|---|
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 | * | |
f9c367e8 | 7 | * @(#)lfs_extern.h 7.8 (Berkeley) %G% |
8e833d0b KB |
8 | */ |
9 | ||
10 | struct fid; | |
ffcee610 | 11 | struct mount; |
275ca4f0 | 12 | struct nameidata; |
8e833d0b | 13 | struct proc; |
8a675605 KB |
14 | struct statfs; |
15 | struct timeval; | |
16 | struct uio; | |
8e833d0b | 17 | |
95c0d52a KB |
18 | __BEGIN_DECLS |
19 | u_long cksum __P((void *, size_t)); /* XXX */ | |
9188d9ae | 20 | int lfs_balloc __P((struct vnode *, u_long, daddr_t, struct buf **)); |
ffcee610 KM |
21 | int lfs_blkatoff __P((struct vnode *, off_t, char **, struct buf **)); |
22 | int lfs_bmap __P((VNODE *, daddr_t, VNODE **, daddr_t *)); | |
8a675605 | 23 | int lfs_bmaparray __P((VNODE *, daddr_t, daddr_t *, INDIR *, int *)); |
95c0d52a | 24 | int lfs_bwrite __P((BUF *)); |
e14f952e | 25 | int lfs_fhtovp __P((struct mount *, struct fid *, int, struct vnode **)); |
95c0d52a KB |
26 | int lfs_fsync |
27 | __P((struct vnode *, int, struct ucred *, int, struct proc *)); | |
280276e9 | 28 | DINODE *lfs_ifind __P((struct lfs *, ino_t, void *)); |
95c0d52a | 29 | int lfs_inactive __P((VNODE *, struct proc *)); |
8e833d0b | 30 | int lfs_init __P((void)); |
95c0d52a KB |
31 | int lfs_makeinode __P((int, struct nameidata *, struct inode **)); |
32 | int lfs_mount | |
33 | __P((MOUNT *, char *, caddr_t, struct nameidata *, struct proc *)); | |
34 | int lfs_mountroot __P((void)); | |
35 | int lfs_read __P((struct vnode *, struct uio *, int, struct ucred *)); | |
ffcee610 | 36 | int lfs_root __P((struct mount *, struct vnode **)); |
275ca4f0 | 37 | int lfs_segwrite __P((MOUNT *, int)); |
95c0d52a KB |
38 | int lfs_statfs __P((MOUNT *, struct statfs *, struct proc *)); |
39 | int lfs_sync __P((MOUNT *, int)); | |
ffcee610 | 40 | int lfs_truncate __P((VNODE *, u_long, int)); |
95c0d52a | 41 | int lfs_unmount __P((MOUNT *, int, struct proc *)); |
ffcee610 KM |
42 | int lfs_update |
43 | __P((struct vnode *, struct timeval *, struct timeval *, int)); | |
44 | int lfs_valloc __P((VNODE *, int, UCRED *, VNODE **)); | |
95c0d52a | 45 | int lfs_vcreate __P((MOUNT *, ino_t, VNODE **)); |
ffcee610 KM |
46 | void lfs_vfree __P((VNODE *, ino_t, int)); |
47 | int lfs_vget __P((struct mount *, ino_t, VNODE **)); | |
48 | int lfs_vptofh __P((struct vnode *, struct fid *)); | |
95c0d52a | 49 | int lfs_write __P((struct vnode *, struct uio *, int, struct ucred *)); |
8e833d0b | 50 | #ifdef DEBUG |
95c0d52a | 51 | void lfs_dump_dinode __P((DINODE *)); |
280276e9 | 52 | void lfs_dump_super __P((struct lfs *)); |
95c0d52a KB |
53 | int lfs_umountdebug __P((struct mount *)); |
54 | int lfs_vinvalbuf __P((struct vnode *)); | |
8e833d0b | 55 | #endif |
95c0d52a | 56 | __END_DECLS |
7ba38242 KM |
57 | extern struct vnodeops lfs_vnodeops, lfs_specops; |
58 | #ifdef FIFO | |
59 | extern struct vnodeops lfs_fifoops; | |
60 | #define LFS_FIFOOPS &lfs_fifoops | |
61 | #else | |
62 | #define LFS_FIFOOPS NULL | |
63 | #endif |