| 1 | /* $NetBSD: coda_vnops.h,v 1.16 2012/08/02 16:06:59 christos Exp $ */ |
| 2 | |
| 3 | /* |
| 4 | * |
| 5 | * Coda: an Experimental Distributed File System |
| 6 | * Release 3.1 |
| 7 | * |
| 8 | * Copyright (c) 1987-1998 Carnegie Mellon University |
| 9 | * All Rights Reserved |
| 10 | * |
| 11 | * Permission to use, copy, modify and distribute this software and its |
| 12 | * documentation is hereby granted, provided that both the copyright |
| 13 | * notice and this permission notice appear in all copies of the |
| 14 | * software, derivative works or modified versions, and any portions |
| 15 | * thereof, and that both notices appear in supporting documentation, and |
| 16 | * that credit is given to Carnegie Mellon University in all documents |
| 17 | * and publicity pertaining to direct or indirect use of this code or its |
| 18 | * derivatives. |
| 19 | * |
| 20 | * CODA IS AN EXPERIMENTAL SOFTWARE SYSTEM AND IS KNOWN TO HAVE BUGS, |
| 21 | * SOME OF WHICH MAY HAVE SERIOUS CONSEQUENCES. CARNEGIE MELLON ALLOWS |
| 22 | * FREE USE OF THIS SOFTWARE IN ITS "AS IS" CONDITION. CARNEGIE MELLON |
| 23 | * DISCLAIMS ANY LIABILITY OF ANY KIND FOR ANY DAMAGES WHATSOEVER |
| 24 | * RESULTING DIRECTLY OR INDIRECTLY FROM THE USE OF THIS SOFTWARE OR OF |
| 25 | * ANY DERIVATIVE WORK. |
| 26 | * |
| 27 | * Carnegie Mellon encourages users of this software to return any |
| 28 | * improvements or extensions that they make, and to grant Carnegie |
| 29 | * Mellon the rights to redistribute these changes without encumbrance. |
| 30 | * |
| 31 | * @(#) coda/coda_vnops.h,v 1.1.1.1 1998/08/29 21:26:46 rvb Exp $ |
| 32 | */ |
| 33 | |
| 34 | /* |
| 35 | * Mach Operating System |
| 36 | * Copyright (c) 1990 Carnegie-Mellon University |
| 37 | * Copyright (c) 1989 Carnegie-Mellon University |
| 38 | * All rights reserved. The CMU software License Agreement specifies |
| 39 | * the terms and conditions for use and redistribution. |
| 40 | */ |
| 41 | |
| 42 | /* |
| 43 | * This code was written for the Coda file system at Carnegie Mellon |
| 44 | * University. Contributers include David Steere, James Kistler, and |
| 45 | * M. Satyanarayanan. |
| 46 | */ |
| 47 | |
| 48 | /* NetBSD interfaces to the vnodeops */ |
| 49 | int coda_open(void *); |
| 50 | int coda_close(void *); |
| 51 | int coda_read(void *); |
| 52 | int coda_write(void *); |
| 53 | int coda_ioctl(void *); |
| 54 | /* 1.3 int coda_select(void *);*/ |
| 55 | int coda_getattr(void *); |
| 56 | int coda_setattr(void *); |
| 57 | int coda_access(void *); |
| 58 | int coda_abortop(void *); |
| 59 | int coda_readlink(void *); |
| 60 | int coda_fsync(void *); |
| 61 | int coda_inactive(void *); |
| 62 | int coda_lookup(void *); |
| 63 | int coda_create(void *); |
| 64 | int coda_remove(void *); |
| 65 | int coda_link(void *); |
| 66 | int coda_rename(void *); |
| 67 | int coda_mkdir(void *); |
| 68 | int coda_rmdir(void *); |
| 69 | int coda_symlink(void *); |
| 70 | int coda_readdir(void *); |
| 71 | int coda_bmap(void *); |
| 72 | int coda_strategy(void *); |
| 73 | int coda_reclaim(void *); |
| 74 | int coda_lock(void *); |
| 75 | int coda_unlock(void *); |
| 76 | int coda_islocked(void *); |
| 77 | int coda_vop_error(void *); |
| 78 | int coda_vop_nop(void *); |
| 79 | int coda_getpages(void *); |
| 80 | int coda_putpages(void *); |
| 81 | |
| 82 | extern int (**coda_vnodeop_p)(void *); |
| 83 | int coda_rdwr(vnode_t *, struct uio *, enum uio_rw, int, kauth_cred_t, |
| 84 | struct lwp *); |
| 85 | int coda_grab_vnode(vnode_t *, dev_t, ino_t, vnode_t **); |
| 86 | |