Allocates a page-sized mbuf structure cluster.
#include <sys/mbuf.h>
int m_clget ( m)
struct mbuf *m;
Item | Description |
---|---|
m | Specifies the mbuf structure with which the cluster is to be associated. |
The m_clget macro allocates a page-sized mbuf cluster and attaches it to the given mbuf structure. If successful, the length of the mbuf structure is set to CLBYTES.
The m_clget macro can be called from either the process or interrupt environment.
Item | Description |
---|---|
1 | Indicates successful completion. |
0 | Indicates an error. |