summaryrefslogtreecommitdiffstats
path: root/sys/nfsclient/nfsm_subs.h
diff options
context:
space:
mode:
authorglebius <glebius@FreeBSD.org>2013-03-12 12:23:47 +0000
committerglebius <glebius@FreeBSD.org>2013-03-12 12:23:47 +0000
commite42141c2bfaab85a100e1a600973362d0f912491 (patch)
treea001c608f85c385a4aeacc5192ec8d1016250d96 /sys/nfsclient/nfsm_subs.h
parent45af7dd4e740a243228d63238eef58673945bf0f (diff)
downloadFreeBSD-src-e42141c2bfaab85a100e1a600973362d0f912491.zip
FreeBSD-src-e42141c2bfaab85a100e1a600973362d0f912491.tar.gz
- Use m_get2() instead of nfsm_reqhead().
- Use m_get(), m_getcl() instead of historic macros. Sponsored by: Nginx, Inc.
Diffstat (limited to 'sys/nfsclient/nfsm_subs.h')
-rw-r--r--sys/nfsclient/nfsm_subs.h28
1 files changed, 0 insertions, 28 deletions
diff --git a/sys/nfsclient/nfsm_subs.h b/sys/nfsclient/nfsm_subs.h
index c12badd..25467cc 100644
--- a/sys/nfsclient/nfsm_subs.h
+++ b/sys/nfsclient/nfsm_subs.h
@@ -53,34 +53,6 @@ struct vnode;
* First define what the actual subs. return
*/
u_int32_t nfs_xid_gen(void);
-struct mbuf *nfsm_reqhead(struct vnode *vp, u_long procid, int hsiz);
-
-#define M_HASCL(m) ((m)->m_flags & M_EXT)
-#define NFSMINOFF(m) \
- do { \
- if (M_HASCL(m)) \
- (m)->m_data = (m)->m_ext.ext_buf; \
- else if ((m)->m_flags & M_PKTHDR) \
- (m)->m_data = (m)->m_pktdat; \
- else \
- (m)->m_data = (m)->m_dat; \
- } while (0)
-#define NFSMSIZ(m) ((M_HASCL(m))?MCLBYTES: \
- (((m)->m_flags & M_PKTHDR)?MHLEN:MLEN))
-
-/*
- * Now for the macros that do the simple stuff and call the functions
- * for the hard stuff.
- * These macros use several vars. declared in nfsm_reqhead and these
- * vars. must not be used elsewhere unless you are careful not to corrupt
- * them. The vars. starting with pN and tN (N=1,2,3,..) are temporaries
- * that may be used so long as the value is not expected to retained
- * after a macro.
- * I know, this is kind of dorkey, but it makes the actual op functions
- * fairly clean and deals with the mess caused by the xdr discriminating
- * unions.
- */
-
/* *********************************** */
/* Request generation phase macros */
OpenPOWER on IntegriCloud