nfsnode.h (9c79794016d679440487dea61b3b986397c9ecbb) | nfsnode.h (86ce6a83d16fdedede88990ffe1d85ad83d8e7c8) |
---|---|
1/*- 2 * Copyright (c) 1989, 1993 3 * The Regents of the University of California. All rights reserved. 4 * 5 * This code is derived from software contributed to Berkeley by 6 * Rick Macklem at The University of Guelph. 7 * 8 * Redistribution and use in source and binary forms, with or without --- 121 unchanged lines hidden (view full) --- 130 } n_un2; 131 union { 132 struct sillyrename *nf_silly; /* Ptr to silly rename struct */ 133 LIST_HEAD(, nfsdmap) nd_cook; /* cookies */ 134 } n_un3; 135 short n_fhsize; /* size in bytes, of fh */ 136 short n_flag; /* Flag for locking.. */ 137 nfsfh_t n_fh; /* Small File Handle */ | 1/*- 2 * Copyright (c) 1989, 1993 3 * The Regents of the University of California. All rights reserved. 4 * 5 * This code is derived from software contributed to Berkeley by 6 * Rick Macklem at The University of Guelph. 7 * 8 * Redistribution and use in source and binary forms, with or without --- 121 unchanged lines hidden (view full) --- 130 } n_un2; 131 union { 132 struct sillyrename *nf_silly; /* Ptr to silly rename struct */ 133 LIST_HEAD(, nfsdmap) nd_cook; /* cookies */ 134 } n_un3; 135 short n_fhsize; /* size in bytes, of fh */ 136 short n_flag; /* Flag for locking.. */ 137 nfsfh_t n_fh; /* Small File Handle */ |
138 struct nfs4_fctx n_rfc; 139 struct nfs4_fctx n_wfc; | |
140 u_char *n_name; /* leaf name, for v4 OPEN op */ 141 uint32_t n_namelen; 142 int n_directio_opens; 143 int n_directio_asyncwr; 144 struct nfs_attrcache_timestamp n_ac_ts; 145}; 146 147#define n_atim n_un1.nf_atim --- 35 unchanged lines hidden (view full) --- 183extern TAILQ_HEAD(nfs_bufq, buf) nfs_bufq; 184extern struct proc *nfs_iodwant[NFS_MAXASYNCDAEMON]; 185extern struct nfsmount *nfs_iodmount[NFS_MAXASYNCDAEMON]; 186 187#if defined(_KERNEL) 188 189extern struct vop_vector nfs_fifoops; 190extern struct vop_vector nfs_vnodeops; | 138 u_char *n_name; /* leaf name, for v4 OPEN op */ 139 uint32_t n_namelen; 140 int n_directio_opens; 141 int n_directio_asyncwr; 142 struct nfs_attrcache_timestamp n_ac_ts; 143}; 144 145#define n_atim n_un1.nf_atim --- 35 unchanged lines hidden (view full) --- 181extern TAILQ_HEAD(nfs_bufq, buf) nfs_bufq; 182extern struct proc *nfs_iodwant[NFS_MAXASYNCDAEMON]; 183extern struct nfsmount *nfs_iodmount[NFS_MAXASYNCDAEMON]; 184 185#if defined(_KERNEL) 186 187extern struct vop_vector nfs_fifoops; 188extern struct vop_vector nfs_vnodeops; |
191extern struct vop_vector nfs4_vnodeops; | |
192extern struct buf_ops buf_ops_nfs; | 189extern struct buf_ops buf_ops_nfs; |
193extern struct buf_ops buf_ops_nfs4; | |
194 195extern vop_advlock_t *nfs_advlock_p; 196extern vop_reclaim_t *nfs_reclaim_p; 197 198/* 199 * Prototypes for NFS vnode operations 200 */ 201int nfs_getpages(struct vop_getpages_args *); 202int nfs_putpages(struct vop_putpages_args *); 203int nfs_write(struct vop_write_args *); 204int nfs_inactive(struct vop_inactive_args *); 205int nfs_reclaim(struct vop_reclaim_args *); 206 207/* other stuff */ 208int nfs_removeit(struct sillyrename *); | 190 191extern vop_advlock_t *nfs_advlock_p; 192extern vop_reclaim_t *nfs_reclaim_p; 193 194/* 195 * Prototypes for NFS vnode operations 196 */ 197int nfs_getpages(struct vop_getpages_args *); 198int nfs_putpages(struct vop_putpages_args *); 199int nfs_write(struct vop_write_args *); 200int nfs_inactive(struct vop_inactive_args *); 201int nfs_reclaim(struct vop_reclaim_args *); 202 203/* other stuff */ 204int nfs_removeit(struct sillyrename *); |
209int nfs4_removeit(struct sillyrename *); | |
210int nfs_nget(struct mount *, nfsfh_t *, int, struct nfsnode **, int flags); 211nfsuint64 *nfs_getcookie(struct nfsnode *, off_t, int); | 205int nfs_nget(struct mount *, nfsfh_t *, int, struct nfsnode **, int flags); 206nfsuint64 *nfs_getcookie(struct nfsnode *, off_t, int); |
212uint64_t *nfs4_getcookie(struct nfsnode *, off_t, int); | |
213void nfs_invaldir(struct vnode *); | 207void nfs_invaldir(struct vnode *); |
214void nfs4_invaldir(struct vnode *); | |
215int nfs_upgrade_vnlock(struct vnode *vp); 216void nfs_downgrade_vnlock(struct vnode *vp, int old_lock); 217void nfs_printf(const char *fmt, ...); 218 219void nfs_dircookie_lock(struct nfsnode *np); 220void nfs_dircookie_unlock(struct nfsnode *np); 221 222#endif /* _KERNEL */ 223 224#endif | 208int nfs_upgrade_vnlock(struct vnode *vp); 209void nfs_downgrade_vnlock(struct vnode *vp, int old_lock); 210void nfs_printf(const char *fmt, ...); 211 212void nfs_dircookie_lock(struct nfsnode *np); 213void nfs_dircookie_unlock(struct nfsnode *np); 214 215#endif /* _KERNEL */ 216 217#endif |