Frees an mbuf structure and any associated external storage area.
#include <sys/types.h> #include <sys/errno.h> #include <sys/mbuf.h>
struct mbuf *m_free(m) struct mbuf *m;
m | Specifies the mbuf structure to be freed. |
The m_free kernel service returns an mbuf structure to the buffer pool. If the mbuf structure specified by the m parameter has an attached cluster (that is, a paged-size mbuf structure), the m_free kernel service also frees the associated external storage.
The m_free kernel service can be called from either the process or interrupt environment.
If the mbuf structure specified by the m parameter is the head of an mbuf chain, the m_free service returns the next mbuf structure in the chain. A null value is returned if the structure specified by the m parameter is not part of an mbuf chain.
The m_free kernel service is part of Base Operating System (BOS) Runtime.
The m_get kernel service.
I/O Kernel Services in AIX Kernel Extensions and Device Support Programming Concepts.