Converts a pointer to an mbuf structure to a pointer to the head of an attached cluster.
#include <sys/mbuf.h>
struct mbuf * m;
MTOCL (m);
Item | Description |
---|---|
m | Indicates the address of the mbuf structure in question. |
The MTOCL macro converts a pointer to an mbuf structure to a pointer to the head of an attached cluster.
The MTOCL macro can be used as in the following example:
caddr_t attcls;
struct mbuf *m;
attcls = (caddr_t) MTOCL(m);