M_HASCL Macro for mbuf Kernel Services
Purpose
Determines if an mbuf structure has an attached cluster.
Syntax
#include <sys/types.h>
#include <sys/errno.h>
#include <sys/mbuf.h>
struct mbuf * m;
M_HASCL (m);
M_HASCL (m);
Parameter
Item | Description |
---|---|
m | Indicates the address of the mbuf structure in question. |
Description
The M_HASCL macro determines if an mbuf structure has an attached cluster.
Execution Environment
The M_HASCL macro can be called from either the process or interrupt environment.
Example
The M_HASCL macro can be used as in the following example:
struct mbuf *m;
if (M_HASCL(m))
printf("mbuf has attached cluster");