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);
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);
The MTOCL macro can be called from either the process or interrupt environment.
The MTOCL macro is part of Base Operating System (BOS) Runtime.
The M_HASCL macro for mbuf kernel services.
I/O Kernel Services in AIX Kernel Extensions and Device Support Programming Concepts.