nfs_common.h (9336) | nfs_common.h (10222) |
---|---|
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 --- 20 unchanged lines hidden (view full) --- 29 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 30 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 31 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 32 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 33 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 34 * SUCH DAMAGE. 35 * 36 * @(#)nfsm_subs.h 8.1 (Berkeley) 6/16/93 | 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 --- 20 unchanged lines hidden (view full) --- 29 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 30 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 31 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 32 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 33 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 34 * SUCH DAMAGE. 35 * 36 * @(#)nfsm_subs.h 8.1 (Berkeley) 6/16/93 |
37 * $Id: nfsm_subs.h,v 1.6 1995/05/30 08:12:51 rgrimes Exp $ | 37 * $Id: nfsm_subs.h,v 1.7 1995/06/27 11:06:55 dfr Exp $ |
38 */ 39 40#ifndef _NFS_NFSM_SUBS_H_ 41#define _NFS_NFSM_SUBS_H_ 42 43 44/* 45 * These macros do strange and peculiar things to mbuf chains for 46 * the assistance of the nfs code. To attempt to use them for any 47 * other purpose will be dangerous. (they make weird assumptions) 48 */ 49 50/* 51 * First define what the actual subs. return 52 */ | 38 */ 39 40#ifndef _NFS_NFSM_SUBS_H_ 41#define _NFS_NFSM_SUBS_H_ 42 43 44/* 45 * These macros do strange and peculiar things to mbuf chains for 46 * the assistance of the nfs code. To attempt to use them for any 47 * other purpose will be dangerous. (they make weird assumptions) 48 */ 49 50/* 51 * First define what the actual subs. return 52 */ |
53extern struct mbuf *nfsm_reqh(); | 53struct mbuf *nfsm_reqh __P((struct vnode *vp, u_long procid, int hsiz, 54 caddr_t *bposp)); 55struct mbuf *nfsm_rpchead __P((struct ucred *cr, int nmflag, int procid, 56 int auth_type, int auth_len, char *auth_str, 57 int verf_len, char *verf_str, 58 struct mbuf *mrest, int mrest_len, 59 struct mbuf **mbp, u_long *xidp)); |
54 55#define M_HASCL(m) ((m)->m_flags & M_EXT) 56#define NFSMINOFF(m) \ 57 if (M_HASCL(m)) \ 58 (m)->m_data = (m)->m_ext.ext_buf; \ 59 else if ((m)->m_flags & M_PKTHDR) \ 60 (m)->m_data = (m)->m_pktdat; \ 61 else \ --- 378 unchanged lines hidden --- | 60 61#define M_HASCL(m) ((m)->m_flags & M_EXT) 62#define NFSMINOFF(m) \ 63 if (M_HASCL(m)) \ 64 (m)->m_data = (m)->m_ext.ext_buf; \ 65 else if ((m)->m_flags & M_PKTHDR) \ 66 (m)->m_data = (m)->m_pktdat; \ 67 else \ --- 378 unchanged lines hidden --- |