[ Next Article | Previous Article | Book Contents | Library Home | Legal | Search ]
Kernel and Subsystems Technical Reference, Volume 1

MTOCL Macro for mbuf Kernel Services

Purpose

Converts a pointer to an mbuf structure to a pointer to the head of an attached cluster.

Syntax

#include <sys/mbuf.h>
struct mbuf *m;
MTOCL (m);

Parameter

m Indicates the address of the mbuf structure in question.

Description

The MTOCL macro converts a pointer to an mbuf structure to a pointer to the head of an attached cluster.

The MTOCL macro can be used as in the following example:

caddr_t attcls;
struct mbuf      *m;
attcls = (caddr_t) MTOCL(m);

Execution Environment

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

Implementation Specifics

The MTOCL macro is part of Base Operating System (BOS) Runtime.

Related Information

The M_HASCL macro for mbuf kernel services.

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


[ Next Article | Previous Article | Book Contents | Library Home | Legal | Search ]