Module Name: src Committed By: maxv Date: Tue Feb 27 14:14:20 UTC 2018
Modified Files: src/sys/sys: mbuf.h Log Message: style and fix typo To generate a diff of this commit: cvs rdiff -u -r1.175 -r1.176 src/sys/sys/mbuf.h Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
Modified files: Index: src/sys/sys/mbuf.h diff -u src/sys/sys/mbuf.h:1.175 src/sys/sys/mbuf.h:1.176 --- src/sys/sys/mbuf.h:1.175 Mon Jan 22 07:11:45 2018 +++ src/sys/sys/mbuf.h Tue Feb 27 14:14:19 2018 @@ -1,6 +1,6 @@ -/* $NetBSD: mbuf.h,v 1.175 2018/01/22 07:11:45 maxv Exp $ */ +/* $NetBSD: mbuf.h,v 1.176 2018/02/27 14:14:19 maxv Exp $ */ -/*- +/* * Copyright (c) 1996, 1997, 1999, 2001, 2007 The NetBSD Foundation, Inc. * All rights reserved. * @@ -130,7 +130,7 @@ enum mowner_counter_index { struct mowner_counter { u_long mc_counter[MOWNER_COUNTER_NCOUNTERS]; }; -#endif /* defined(_KERNEL) */ +#endif /* userland-exported version of struct mowner */ struct mowner_user { @@ -146,7 +146,7 @@ struct mowner_user { */ #define mtod(m, t) ((t)((m)->m_data)) -/* header at beginning of each mbuf: */ +/* header at beginning of each mbuf */ struct m_hdr { struct mbuf *mh_next; /* next buffer in chain */ struct mbuf *mh_nextpkt; /* next chain in queue/record */ @@ -177,7 +177,7 @@ struct m_hdr { * Size ILP32: 40 * LP64: 56 */ -struct pkthdr { +struct pkthdr { union { void *ctx; /* for M_GETCTX/M_SETCTX */ if_index_t index; /* rcv interface index */ @@ -201,7 +201,7 @@ struct pkthdr { }; /* - * Note: These bits are carefully arrange so that the compiler can have + * Note: These bits are carefully arranged so that the compiler can have * a prayer of generating a jump table. */ #define M_CSUM_TCPv4 0x00000001 /* TCP header/payload */ @@ -238,7 +238,7 @@ struct pkthdr { * M_CSUM_DATA_IPv6_HL: length of ip6_hdr + ext header. * ie. offset of UDP/TCP header in the packet. * - * M_CSUM_DATA_IPv6_OFFSET: offset of the checksum field in UDP/TCP header. + * M_CSUM_DATA_IPv6_OFFSET: offset of the checksum field in UDP/TCP header. */ #define M_CSUM_DATA_IPv6_HL(x) ((x) >> 16) @@ -353,7 +353,7 @@ MBUF_DEFINE(mbuf, MHLEN, MLEN); * IP header */ #define M_DECRYPTED 0x00000020 /* confidentiality */ #define M_LOOP 0x00000040 /* for Mbuf statistics */ -#define M_AUTHIPDGM 0x00000080 /* data origin authentication */ +#define M_AUTHIPDGM 0x00000080 /* data origin authentication */ #define M_BCAST 0x00000100 /* send/received as link-level * broadcast */ #define M_MCAST 0x00000200 /* send/received as link-level @@ -816,13 +816,13 @@ struct mbstat_cpu { #ifdef _KERNEL extern struct mbstat mbstat; -extern int nmbclusters; /* limit on the # of clusters */ -extern int mblowat; /* mbuf low water mark */ -extern int mcllowat; /* mbuf cluster low water mark */ -extern int max_linkhdr; /* largest link-level header */ -extern int max_protohdr; /* largest protocol header */ -extern int max_hdr; /* largest link+protocol header */ -extern int max_datalen; /* MHLEN - max_hdr */ +extern int nmbclusters; /* limit on the # of clusters */ +extern int mblowat; /* mbuf low water mark */ +extern int mcllowat; /* mbuf cluster low water mark */ +extern int max_linkhdr; /* largest link-level header */ +extern int max_protohdr; /* largest protocol header */ +extern int max_hdr; /* largest link+protocol header */ +extern int max_datalen; /* MHLEN - max_hdr */ extern const int msize; /* mbuf base size */ extern const int mclbytes; /* mbuf cluster size */ extern pool_cache_t mb_cache; @@ -840,7 +840,7 @@ MALLOC_DECLARE(M_SONAME); struct mbuf *m_copym(struct mbuf *, int, int, int); struct mbuf *m_copypacket(struct mbuf *, int); struct mbuf *m_devget(char *, int, int, struct ifnet *, - void (*copy)(const void *, void *, size_t)); + void (*copy)(const void *, void *, size_t)); struct mbuf *m_dup(struct mbuf *, int, int, int); struct mbuf *m_get(int, int); struct mbuf *m_getclr(int, int); @@ -854,13 +854,13 @@ struct mbuf *m_getptr(struct mbuf *, int void m_adj(struct mbuf *, int); struct mbuf *m_defrag(struct mbuf *, int); int m_apply(struct mbuf *, int, int, - int (*)(void *, void *, unsigned int), void *); + int (*)(void *, void *, unsigned int), void *); void m_cat(struct mbuf *,struct mbuf *); void m_clget(struct mbuf *, int); int m_mballoc(int, int); void m_copyback(struct mbuf *, int, int, const void *); struct mbuf *m_copyback_cow(struct mbuf *, int, int, const void *, int); -int m_makewritable(struct mbuf **, int, int, int); +int m_makewritable(struct mbuf **, int, int, int); struct mbuf *m_getcl(int, int, int); void m_copydata(struct mbuf *, int, int, void *); struct mbuf *m_free(struct mbuf *);