m_getm2: correct a comment.
The comment states that function always return a top of allocated mbuf; however, the function actually return the overall mbuf chain top pointer. Since there are already existing users of it (via m_getm(4) macro), rephrase the comment and leave behavior unchanged. PR: 134335 MFC after: 12 days
This commit is contained in:
parent
1a7c1b2cbc
commit
58c43838f7
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=343500
@ -1031,8 +1031,7 @@ m_getjcl(int how, short type, int flags, int size)
|
||||
* Allocate a given length worth of mbufs and/or clusters (whatever fits
|
||||
* best) and return a pointer to the top of the allocated chain. If an
|
||||
* existing mbuf chain is provided, then we will append the new chain
|
||||
* to the existing one but still return the top of the newly allocated
|
||||
* chain.
|
||||
* to the existing one and return a pointer to the provided mbuf.
|
||||
*/
|
||||
struct mbuf *
|
||||
m_getm2(struct mbuf *m, int len, int how, short type, int flags)
|
||||
|
Loading…
Reference in New Issue
Block a user