m_freem Kernel Service

Purpose

Frees an entire mbuf chain.

Syntax

#include <sys/types.h>
#include <sys/errno.h>
#include <sys/mbuf.h>

void m_freem ( m)
struct mbuf *m;

Parameter

Item Description
m Indicates the head of the mbuf chain to be freed.

Description

The m_freem kernel service starts the m_free kernel service for each mbuf structure in the chain headed by the head specified by the m parameter.

Execution Environment

The m_freem kernel service can be called from either the process or interrupt environment.

Return Values

The m_freem service has no return values.