[ Bottom of Page | Previous Page | Next Page | Contents | Index | Library Home | Legal | Search ]

Technical Reference: Kernel and Subsystems, Volume 1

m_free Kernel Service

Purpose

Frees an mbuf structure and any associated external storage area.

Syntax

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


struct mbuf *m_free( m)
struct mbuf *m;

Parameter

m Specifies the mbuf structure to be freed.

Description

The m_free kernel service returns an mbuf structure to the buffer pool. If the mbuf structure specified by the m parameter has an attached cluster (that is, a paged-size mbuf structure), the m_free kernel service also frees the associated external storage.

Execution Environment

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

Return Values

If the mbuf structure specified by the m parameter is the head of an mbuf chain, the m_free service returns the next mbuf structure in the chain. A null value is returned if the structure specified by the m parameter is not part of an mbuf chain.

Related Information

The m_get kernel service.

I/O Kernel Services in AIX 5L Version 5.2 Kernel Extensions and Device Support Programming Concepts.

[ Top of Page | Previous Page | Next Page | Contents | Index | Library Home | Legal | Search ]