NetBSD/sys/coda/coda_venus.h

138 lines
3.9 KiB
C
Raw Normal View History

/* $NetBSD: coda_venus.h,v 1.11 2007/03/04 06:01:12 christos Exp $ */
1998-08-30 01:26:45 +04:00
1998-09-08 21:12:46 +04:00
/*
2005-02-27 01:58:54 +03:00
*
1998-09-08 21:12:46 +04:00
* Coda: an Experimental Distributed File System
* Release 3.1
2005-02-27 01:58:54 +03:00
*
1998-09-08 21:12:46 +04:00
* Copyright (c) 1987-1998 Carnegie Mellon University
* All Rights Reserved
2005-02-27 01:58:54 +03:00
*
1998-09-08 21:12:46 +04:00
* Permission to use, copy, modify and distribute this software and its
* documentation is hereby granted, provided that both the copyright
* notice and this permission notice appear in all copies of the
* software, derivative works or modified versions, and any portions
* thereof, and that both notices appear in supporting documentation, and
* that credit is given to Carnegie Mellon University in all documents
* and publicity pertaining to direct or indirect use of this code or its
* derivatives.
2005-02-27 01:58:54 +03:00
*
1998-09-08 21:12:46 +04:00
* CODA IS AN EXPERIMENTAL SOFTWARE SYSTEM AND IS KNOWN TO HAVE BUGS,
* SOME OF WHICH MAY HAVE SERIOUS CONSEQUENCES. CARNEGIE MELLON ALLOWS
* FREE USE OF THIS SOFTWARE IN ITS "AS IS" CONDITION. CARNEGIE MELLON
* DISCLAIMS ANY LIABILITY OF ANY KIND FOR ANY DAMAGES WHATSOEVER
* RESULTING DIRECTLY OR INDIRECTLY FROM THE USE OF THIS SOFTWARE OR OF
* ANY DERIVATIVE WORK.
2005-02-27 01:58:54 +03:00
*
1998-09-08 21:12:46 +04:00
* Carnegie Mellon encourages users of this software to return any
* improvements or extensions that they make, and to grant Carnegie
* Mellon the rights to redistribute these changes without encumbrance.
2005-02-27 01:58:54 +03:00
*
* @(#) coda/coda_venus.h,v 1.1.1.1 1998/08/29 21:26:45 rvb Exp $
1998-09-08 21:12:46 +04:00
*/
1998-08-30 01:26:45 +04:00
int
venus_root(void *mdp,
2006-05-15 01:19:33 +04:00
kauth_cred_t cred, struct proc *p,
/*out*/ CodaFid *VFid);
1998-08-30 01:26:45 +04:00
int
venus_open(void *mdp, CodaFid *fid, int flag,
2006-05-15 01:19:33 +04:00
kauth_cred_t cred, struct lwp *l,
1998-08-30 01:26:45 +04:00
/*out*/ dev_t *dev, ino_t *inode);
int
venus_close(void *mdp, CodaFid *fid, int flag,
2006-05-15 01:19:33 +04:00
kauth_cred_t cred, struct lwp *l);
1998-08-30 01:26:45 +04:00
void
venus_read(void);
void
venus_write(void);
int
venus_ioctl(void *mdp, CodaFid *fid,
int com, int flag, void *data,
2006-05-15 01:19:33 +04:00
kauth_cred_t cred, struct lwp *l);
1998-08-30 01:26:45 +04:00
int
venus_getattr(void *mdp, CodaFid *fid,
2006-05-15 01:19:33 +04:00
kauth_cred_t cred, struct lwp *l,
1998-08-30 01:26:45 +04:00
/*out*/ struct vattr *vap);
int
venus_setattr(void *mdp, CodaFid *fid, struct vattr *vap,
2006-05-15 01:19:33 +04:00
kauth_cred_t cred, struct lwp *l);
1998-08-30 01:26:45 +04:00
int
venus_access(void *mdp, CodaFid *fid, int mode,
2006-05-15 01:19:33 +04:00
kauth_cred_t cred, struct lwp *l);
1998-08-30 01:26:45 +04:00
int
venus_readlink(void *mdp, CodaFid *fid,
2006-05-15 01:19:33 +04:00
kauth_cred_t cred, struct lwp *l,
1998-08-30 01:26:45 +04:00
/*out*/ char **str, int *len);
int
venus_fsync(void *mdp, CodaFid *fid,
2006-05-15 01:19:33 +04:00
kauth_cred_t cred, struct lwp *l);
1998-08-30 01:26:45 +04:00
int
venus_lookup(void *mdp, CodaFid *fid,
1998-08-30 01:26:45 +04:00
const char *nm, int len,
2006-05-15 01:19:33 +04:00
kauth_cred_t cred, struct lwp *l,
/*out*/ CodaFid *VFid, int *vtype);
1998-08-30 01:26:45 +04:00
int
venus_create(void *mdp, CodaFid *fid,
1998-08-30 01:26:45 +04:00
const char *nm, int len, int exclusive, int mode, struct vattr *va,
2006-05-15 01:19:33 +04:00
kauth_cred_t cred, struct lwp *l,
/*out*/ CodaFid *VFid, struct vattr *attr);
1998-08-30 01:26:45 +04:00
int
venus_remove(void *mdp, CodaFid *fid,
1998-08-30 01:26:45 +04:00
const char *nm, int len,
2006-05-15 01:19:33 +04:00
kauth_cred_t cred, struct lwp *l);
1998-08-30 01:26:45 +04:00
int
venus_link(void *mdp, CodaFid *fid, CodaFid *tfid,
1998-08-30 01:26:45 +04:00
const char *nm, int len,
2006-05-15 01:19:33 +04:00
kauth_cred_t cred, struct lwp *l);
1998-08-30 01:26:45 +04:00
int
venus_rename(void *mdp, CodaFid *fid, CodaFid *tfid,
1998-08-30 01:26:45 +04:00
const char *nm, int len, const char *tnm, int tlen,
2006-05-15 01:19:33 +04:00
kauth_cred_t cred, struct lwp *l);
1998-08-30 01:26:45 +04:00
int
venus_mkdir(void *mdp, CodaFid *fid,
1998-08-30 01:26:45 +04:00
const char *nm, int len, struct vattr *va,
2006-05-15 01:19:33 +04:00
kauth_cred_t cred, struct lwp *l,
/*out*/ CodaFid *VFid, struct vattr *ova);
1998-08-30 01:26:45 +04:00
int
venus_rmdir(void *mdp, CodaFid *fid,
1998-08-30 01:26:45 +04:00
const char *nm, int len,
2006-05-15 01:19:33 +04:00
kauth_cred_t cred, struct lwp *l);
1998-08-30 01:26:45 +04:00
int
venus_symlink(void *mdp, CodaFid *fid,
1998-08-30 01:26:45 +04:00
const char *lnm, int llen, const char *nm, int len, struct vattr *va,
2006-05-15 01:19:33 +04:00
kauth_cred_t cred, struct lwp *l);
1998-08-30 01:26:45 +04:00
int
venus_readdir(void *mdp, CodaFid *fid,
1998-08-30 01:26:45 +04:00
int count, int offset,
2006-05-15 01:19:33 +04:00
kauth_cred_t cred, struct lwp *l,
1998-08-30 01:26:45 +04:00
/*out*/ char *buffer, int *len);
int
2006-05-15 01:19:33 +04:00
venus_statfs(void *mdp, kauth_cred_t cred, struct lwp *l,
/*out*/ struct coda_statfs *fsp);
1998-08-30 01:26:45 +04:00
int
venus_fhtovp(void *mdp, CodaFid *fid,
2006-05-15 01:19:33 +04:00
kauth_cred_t cred, struct proc *p,
/*out*/ CodaFid *VFid, int *vtype);