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

M_HASCL Macro for mbuf Kernel Services

Purpose

Determines if an mbuf structure has an attached cluster.

Syntax

#include <sys/types.h>
#include <sys/errno.h>
#include <sys/mbuf.h>
struct mbuf *m;
M_HASCL (m);

Parameter

m Indicates the address of the mbuf structure in question.

Description

The M_HASCL macro determines if an mbuf structure has an attached cluster.

Execution Environment

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

Example

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

struct mbuf  *m;
if (M_HASCL(m)) 
   printf("mbuf has attached cluster");

Implementation Specifics

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

Related Information

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


[ Previous | Next | Contents | Home | Search ]