diff options
author | bde <bde@FreeBSD.org> | 2006-10-17 22:07:07 +0000 |
---|---|---|
committer | bde <bde@FreeBSD.org> | 2006-10-17 22:07:07 +0000 |
commit | fea5a64567ed96e580698f6df8273f97c9d6cbb1 (patch) | |
tree | 20e4d1406a841606e9c3f4aa9a6b0b213b345593 /sys/nfsclient/nfs.h | |
parent | dc687df9d5ae6c17d1852736d041b4c697e79716 (diff) | |
download | FreeBSD-src-fea5a64567ed96e580698f6df8273f97c9d6cbb1.zip FreeBSD-src-fea5a64567ed96e580698f6df8273f97c9d6cbb1.tar.gz |
Fixed some style bugs (especially ones involving long lines and use
of __P(())). There are many more.
Diffstat (limited to 'sys/nfsclient/nfs.h')
-rw-r--r-- | sys/nfsclient/nfs.h | 36 |
1 files changed, 19 insertions, 17 deletions
diff --git a/sys/nfsclient/nfs.h b/sys/nfsclient/nfs.h index c0a649f..1bfaf4a 100644 --- a/sys/nfsclient/nfs.h +++ b/sys/nfsclient/nfs.h @@ -147,18 +147,13 @@ extern u_int32_t rpc_auth_unix, rpc_msgaccepted, rpc_call, rpc_autherr; extern int nfsv3_procid[NFS_NPROCS]; -struct uio; -struct buf; -struct vattr; -struct nameidata; - /* * Socket errors ignored for connectionless sockets?? * For now, ignore them all */ #define NFSIGNORE_SOERROR(s, e) \ ((e) != EINTR && (e) != EIO && \ - (e) != ERESTART && (e) != EWOULDBLOCK && \ + (e) != ERESTART && (e) != EWOULDBLOCK && \ ((s) & PR_CONNREQUIRED) == 0) /* @@ -200,18 +195,25 @@ extern TAILQ_HEAD(nfs_reqq, nfsreq) nfs_reqq; #define R_GETONEREP 0x80 /* Probe for one reply only */ #define R_REXMIT_INPROG 0x100 /* Re-transmit in progress */ +struct buf; +struct socket; +struct uio; +struct vattr; + /* * Pointers to ops that differ from v3 to v4 */ struct nfs_rpcops { - int (*nr_readrpc)(struct vnode *vp, struct uio *uiop, struct ucred *cred); - int (*nr_writerpc)(struct vnode *vp, struct uio *uiop, struct ucred *cred, - int *iomode, int *must_commit); + int (*nr_readrpc)(struct vnode *vp, struct uio *uiop, + struct ucred *cred); + int (*nr_writerpc)(struct vnode *vp, struct uio *uiop, + struct ucred *cred, int *iomode, int *must_commit); int (*nr_writebp)(struct buf *bp, int force, struct thread *td); - int (*nr_readlinkrpc)(struct vnode *vp, struct uio *uiop, struct ucred *cred); + int (*nr_readlinkrpc)(struct vnode *vp, struct uio *uiop, + struct ucred *cred); void (*nr_invaldir)(struct vnode *vp); int (*nr_commit)(struct vnode *vp, u_quad_t offset, int cnt, - struct ucred *cred, struct thread *td); + struct ucred *cred, struct thread *td); }; /* @@ -305,8 +307,8 @@ int nfs_readdirrpc(struct vnode *, struct uio *, struct ucred *); int nfs_nfsiodnew(void); int nfs_asyncio(struct nfsmount *, struct buf *, struct ucred *, struct thread *); int nfs_doio(struct vnode *, struct buf *, struct ucred *, struct thread *); -void nfs_doio_directwrite (struct buf *); -void nfs_up(struct nfsreq *, struct nfsmount *, struct thread *, +void nfs_doio_directwrite (struct buf *); +void nfs_up(struct nfsreq *, struct nfsmount *, struct thread *, const char *, int); void nfs_down(struct nfsreq *, struct nfsmount *, struct thread *, const char *, int, int); @@ -337,10 +339,10 @@ int nfs_fsinfo(struct nfsmount *, struct vnode *, struct ucred *, int nfs_meta_setsize (struct vnode *, struct ucred *, struct thread *, u_quad_t); -void nfs_set_sigmask __P((struct thread *td, sigset_t *oldset)); -void nfs_restore_sigmask __P((struct thread *td, sigset_t *set)); -int nfs_msleep __P((struct thread *td, void *ident, struct mtx *mtx, int priority, - char *wmesg, int timo)); +void nfs_set_sigmask(struct thread *td, sigset_t *oldset); +void nfs_restore_sigmask(struct thread *td, sigset_t *set); +int nfs_msleep(struct thread *td, void *ident, struct mtx *mtx, + int priority, char *wmesg, int timo); #endif /* _KERNEL */ |