d_align Kernel Service

Purpose

Provides needed information to align a buffer with a processor cache line.

Library

Kernel Extension Runtime Routines Library (libsys.a)

Syntax

int  d_align()

Description

To maintain cache consistency with system memory, buffers must be aligned. The d_align kernel service helps provide that function by returning the maximum processor cache-line size. The cache-line size is returned in log2 form.

Execution Environment

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