m_clget Macro for mbuf Kernel Services

Purpose

Allocates a page-sized mbuf structure cluster.

Syntax

#include <sys/mbuf.h>

int m_clget ( m)
struct mbuf *m;

Parameter

Item Description
m Specifies the mbuf structure with which the cluster is to be associated.

Description

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.

Execution Environment

The m_clget macro can be called from either the process or interrupt environment.

Return Values

Item Description
1 Indicates successful completion.
0 Indicates an error.