Changeset a9dd6de in rtems


Ignore:
Timestamp:
May 9, 2005, 1:13:12 PM (15 years ago)
Author:
Ralf Corsepius <ralf.corsepius@…>
Branches:
4.10, 4.11, 4.8, 4.9, master
Children:
e5d519a6
Parents:
9e7678d
Message:

Ansification.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • cpukit/libnetworking/sys/mbuf.h

    r9e7678d ra9dd6de  
    5252#define MLEN            (MSIZE - sizeof(struct m_hdr))  /* normal data len */
    5353#define MHLEN           (MLEN - sizeof(struct pkthdr))  /* data len w/pkthdr */
    54 
    5554#define MINCLSIZE       (MHLEN + MLEN)  /* smallest amount to put in cluster */
    5655#define M_MAXCOMPRESS   (MHLEN / 2)     /* max amount to copy for compression */
    5756
    58 /*
    59  * Macros for type conversion
    60  * mtod(m,t) -  convert mbuf pointer to data pointer of correct type
    61  * dtom(x) -    convert data pointer within mbuf to mbuf pointer (XXX)
    62  * mtocl(x) -   convert pointer within cluster to cluster index #
    63  * cltom(x) -   convert cluster # to ptr to beginning of cluster
    64  */
    65 #define mtod(m,t)       ((t)((m)->m_data))
     57/*-
     58 * Macros for type conversion:
     59 * mtod(m, t)   -- Convert mbuf pointer to data pointer of correct type.
     60 * dtom(x)      -- Convert data pointer within mbuf to mbuf pointer (XXX).
     61 * mtocl(x)     -- Convert pointer within cluster to cluster index #
     62 * cltom(x)     -- Convert cluster # to ptr to beginning of cluster
     63 */
     64#define mtod(m, t)      ((t)((m)->m_data))
    6665#define dtom(x)         ((struct mbuf *)((intptr_t)(x) & ~(MSIZE-1)))
    6766#define mtocl(x)        (((u_long)(x) - (u_long)mbutl) >> MCLSHIFT)
     
    401400extern int      mbtypes[];              /* XXX */
    402401
    403 struct  mbuf *m_copym __P((struct mbuf *, int, int, int));
    404 struct  mbuf *m_copypacket __P((struct mbuf *, int));
    405 struct  mbuf *m_devget __P((char *, int, int, struct ifnet *,
    406                             void (*copy)(char *, caddr_t, u_int)));
    407 struct  mbuf *m_free __P((struct mbuf *));
    408 struct  mbuf *m_get __P((int, int));
    409 struct  mbuf *m_getclr __P((int, int));
    410 struct  mbuf *m_gethdr __P((int, int));
    411 struct  mbuf *m_prepend __P((struct mbuf *,int,int));
    412 struct  mbuf *m_pullup __P((struct mbuf *, int));
    413 struct  mbuf *m_retry __P((int, int));
    414 struct  mbuf *m_retryhdr __P((int, int));
    415 struct  mbuf *m_split __P((struct mbuf *,int,int));
    416 void    m_adj __P((struct mbuf *, int));
    417 void    m_cat __P((struct mbuf *,struct mbuf *));
    418 int     m_mballoc __P((int, int));
    419 int     m_clalloc __P((int, int));
    420 int     m_copyback __P((struct mbuf *, int, int, caddr_t));
    421 int     m_copydata __P((struct mbuf *, int, int, caddr_t));
    422 void    m_freem __P((struct mbuf *));
    423 void    m_reclaim __P((void));
     402struct  mbuf *m_copym(struct mbuf *, int, int, int);
     403struct  mbuf *m_copypacket(struct mbuf *, int);
     404struct  mbuf *m_devget(char *, int, int, struct ifnet *,
     405                            void (*copy)(char *, caddr_t, u_int));
     406struct  mbuf *m_free(struct mbuf *);
     407struct  mbuf *m_get(int, int);
     408struct  mbuf *m_getclr(int, int);
     409struct  mbuf *m_gethdr(int, int);
     410struct  mbuf *m_prepend(struct mbuf *,int,int);
     411struct  mbuf *m_pullup(struct mbuf *, int);
     412struct  mbuf *m_retry(int, int);
     413struct  mbuf *m_retryhdr(int, int);
     414struct  mbuf *m_split(struct mbuf *,int,int);
     415void    m_adj(struct mbuf *, int);
     416void    m_cat(struct mbuf *,struct mbuf *);
     417int     m_mballoc(int, int);
     418int     m_clalloc(int, int);
     419int     m_copyback(struct mbuf *, int, int, caddr_t);
     420int     m_copydata(const struct mbuf *, int, int, caddr_t);
     421void    m_freem(struct mbuf *);
     422void    m_reclaim(void);
    424423
    425424#ifdef MBTYPES
Note: See TracChangeset for help on using the changeset viewer.