Since the macro dtom() has been removed, fix comments about the dtom.
Reviewed by: glebius
This commit is contained in:
parent
0a5f2ecced
commit
a2c36a0234
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=242304
@ -244,7 +244,7 @@ static void mb_reclaim(void *);
|
||||
static void mbuf_init(void *);
|
||||
static void *mbuf_jumbo_alloc(uma_zone_t, int, uint8_t *, int);
|
||||
|
||||
/* Ensure that MSIZE doesn't break dtom() - it must be a power of 2 */
|
||||
/* Ensure that MSIZE must be a power of 2. */
|
||||
CTASSERT((((MSIZE - 1) ^ MSIZE) + 1) >> 1 == MSIZE);
|
||||
|
||||
/*
|
||||
|
@ -1000,8 +1000,8 @@ m_adj(struct mbuf *mp, int req_len)
|
||||
|
||||
/*
|
||||
* Rearange an mbuf chain so that len bytes are contiguous
|
||||
* and in the data area of an mbuf (so that mtod and dtom
|
||||
* will work for a structure of size len). Returns the resulting
|
||||
* and in the data area of an mbuf (so that mtod will work
|
||||
* for a structure of size len). Returns the resulting
|
||||
* mbuf chain on success, frees it and returns null on failure.
|
||||
* If there is room, it will add up to max_protohdr-len extra bytes to the
|
||||
* contiguous region in an attempt to avoid being called next time.
|
||||
|
Loading…
Reference in New Issue
Block a user