[ Previous | Next | Contents | Home | Search ]
AIX Version 4.3 Kernel and Subsystems Technical Reference, Volume 1

m_reg Kernel Service

Purpose

Registers expected mbuf usage.

Syntax

#include <sys/types.h>
#include <sys/errno.h>
#include <sys/mbuf.h>
void m_reg (mbp)
struct mbreq mbp;

Parameter

mbp Defines the address of an mbreq structure that specifies expected mbuf usage.

Description

The m_reg kernel service lets users of mbuf services specify initial requirements. The m_reg kernel service also allows the buffer pool low-water and deallocation marks to be adjusted based on expected usage. Its use is recommended for better control of the buffer pool.

When the number of free mbuf structures falls below the low-water mark, the total mbuf pool is expanded. When the number of free mbuf structures rises above the deallocation mark, the total mbuf pool is contracted and resources are returned to the system.

Execution Environment

The m_reg kernel service can be called from the process environment only.

Return Values

The m_reg service has no return values.

Implementation Specifics

The m_reg kernel service is part of Base Operating System (BOS) Runtime.

Related Information

The mbreq structure for mbuf kernel services, the m_dereg kernel service.

I/O Kernel Services in AIX Kernel Extensions and Device Support Programming Concepts.


[ Previous | Next | Contents | Home | Search ]