mbuf.h (4466) | mbuf.h (9759) |
---|---|
1/* 2 * Copyright (c) 1982, 1986, 1988, 1993 3 * The Regents of the University of California. All rights reserved. 4 * 5 * Redistribution and use in source and binary forms, with or without 6 * modification, are permitted provided that the following conditions 7 * are met: 8 * 1. Redistributions of source code must retain the above copyright --- 17 unchanged lines hidden (view full) --- 26 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 27 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 28 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 29 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 30 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 31 * SUCH DAMAGE. 32 * 33 * @(#)mbuf.h 8.3 (Berkeley) 1/21/94 | 1/* 2 * Copyright (c) 1982, 1986, 1988, 1993 3 * The Regents of the University of California. All rights reserved. 4 * 5 * Redistribution and use in source and binary forms, with or without 6 * modification, are permitted provided that the following conditions 7 * are met: 8 * 1. Redistributions of source code must retain the above copyright --- 17 unchanged lines hidden (view full) --- 26 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 27 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 28 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 29 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 30 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 31 * SUCH DAMAGE. 32 * 33 * @(#)mbuf.h 8.3 (Berkeley) 1/21/94 |
34 * $Id: mbuf.h,v 1.8 1994/11/04 00:28:38 davidg Exp $ | 34 * $Id: mbuf.h,v 1.9 1994/11/14 13:54:20 bde Exp $ |
35 */ 36 37#ifndef _SYS_MBUF_H_ 38#define _SYS_MBUF_H_ 39 40#ifndef M_WAITOK 41#include <sys/malloc.h> 42#endif --- 310 unchanged lines hidden (view full) --- 353 u_long m_clfree; /* free clusters */ 354 u_long m_drops; /* times failed to find space */ 355 u_long m_wait; /* times waited for space */ 356 u_long m_drain; /* times drained protocols for space */ 357 u_short m_mtypes[256]; /* type specific mbuf allocations */ 358}; 359 360#ifdef KERNEL | 35 */ 36 37#ifndef _SYS_MBUF_H_ 38#define _SYS_MBUF_H_ 39 40#ifndef M_WAITOK 41#include <sys/malloc.h> 42#endif --- 310 unchanged lines hidden (view full) --- 353 u_long m_clfree; /* free clusters */ 354 u_long m_drops; /* times failed to find space */ 355 u_long m_wait; /* times waited for space */ 356 u_long m_drain; /* times drained protocols for space */ 357 u_short m_mtypes[256]; /* type specific mbuf allocations */ 358}; 359 360#ifdef KERNEL |
361extern struct mbuf *mbutl; /* virtual address of mclusters */ 362extern char *mclrefcnt; /* cluster reference counts */ 363struct mbstat mbstat; 364extern int nmbclusters; 365union mcluster *mclfree; 366int max_linkhdr; /* largest link-level header */ 367int max_protohdr; /* largest protocol header */ 368int max_hdr; /* largest link+protocol header */ 369int max_datalen; /* MHLEN - max_hdr */ 370extern int mbtypes[]; /* XXX */ | 361extern struct mbuf *mbutl; /* virtual address of mclusters */ 362extern char *mclrefcnt; /* cluster reference counts */ 363extern struct mbstat mbstat; 364extern int nmbclusters; 365extern union mcluster *mclfree; 366extern int max_linkhdr; /* largest link-level header */ 367extern int max_protohdr; /* largest protocol header */ 368extern int max_hdr; /* largest link+protocol header */ 369extern int max_datalen; /* MHLEN - max_hdr */ 370extern int mbtypes[]; /* XXX */ |
371 372int m_clalloc __P((int, int)); 373void m_copyback __P((struct mbuf *, int, int, caddr_t)); 374struct mbuf *m_retry __P((int, int)); 375struct mbuf *m_retryhdr __P((int, int)); 376void m_reclaim __P((void)); 377struct mbuf *m_get __P((int, int)); 378struct mbuf *m_gethdr __P((int, int)); --- 39 unchanged lines hidden --- | 371 372int m_clalloc __P((int, int)); 373void m_copyback __P((struct mbuf *, int, int, caddr_t)); 374struct mbuf *m_retry __P((int, int)); 375struct mbuf *m_retryhdr __P((int, int)); 376void m_reclaim __P((void)); 377struct mbuf *m_get __P((int, int)); 378struct mbuf *m_gethdr __P((int, int)); --- 39 unchanged lines hidden --- |