nfsm_subs.h (152652) | nfsm_subs.h (176224) |
---|---|
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 --- 16 unchanged lines hidden (view full) --- 25 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 26 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 27 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 28 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 29 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 30 * SUCH DAMAGE. 31 * 32 * @(#)nfsm_subs.h 8.2 (Berkeley) 3/30/95 | 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 --- 16 unchanged lines hidden (view full) --- 25 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 26 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 27 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 28 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 29 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 30 * SUCH DAMAGE. 31 * 32 * @(#)nfsm_subs.h 8.2 (Berkeley) 3/30/95 |
33 * $FreeBSD: head/sys/nfsclient/nfsm_subs.h 152652 2005-11-21 18:39:18Z rees $ | 33 * $FreeBSD: head/sys/nfsclient/nfsm_subs.h 176224 2008-02-13 00:04:58Z jhb $ |
34 */ 35 36#ifndef _NFSCLIENT_NFSM_SUBS_H_ 37#define _NFSCLIENT_NFSM_SUBS_H_ 38 39#include <nfs/nfs_common.h> 40 41#define nfsv2tov_type(a) nv2tov_type[fxdr_unsigned(u_int32_t,(a))&0x7] --- 5 unchanged lines hidden (view full) --- 47 * These macros do strange and peculiar things to mbuf chains for 48 * the assistance of the nfs code. To attempt to use them for any 49 * other purpose will be dangerous. (they make weird assumptions) 50 */ 51 52/* 53 * First define what the actual subs. return 54 */ | 34 */ 35 36#ifndef _NFSCLIENT_NFSM_SUBS_H_ 37#define _NFSCLIENT_NFSM_SUBS_H_ 38 39#include <nfs/nfs_common.h> 40 41#define nfsv2tov_type(a) nv2tov_type[fxdr_unsigned(u_int32_t,(a))&0x7] --- 5 unchanged lines hidden (view full) --- 47 * These macros do strange and peculiar things to mbuf chains for 48 * the assistance of the nfs code. To attempt to use them for any 49 * other purpose will be dangerous. (they make weird assumptions) 50 */ 51 52/* 53 * First define what the actual subs. return 54 */ |
55u_int32_t nfs_xid_gen(void); |
|
55struct mbuf *nfsm_reqhead(struct vnode *vp, u_long procid, int hsiz); 56struct mbuf *nfsm_rpchead(struct ucred *cr, int nmflag, int procid, 57 int auth_type, int auth_len, 58 struct mbuf *mrest, int mrest_len, 59 struct mbuf **mbp, u_int32_t **xidpp); 60 61#define M_HASCL(m) ((m)->m_flags & M_EXT) 62#define NFSMINOFF(m) \ --- 151 unchanged lines hidden --- | 56struct mbuf *nfsm_reqhead(struct vnode *vp, u_long procid, int hsiz); 57struct mbuf *nfsm_rpchead(struct ucred *cr, int nmflag, int procid, 58 int auth_type, int auth_len, 59 struct mbuf *mrest, int mrest_len, 60 struct mbuf **mbp, u_int32_t **xidpp); 61 62#define M_HASCL(m) ((m)->m_flags & M_EXT) 63#define NFSMINOFF(m) \ --- 151 unchanged lines hidden --- |