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

d_roundup Kernel Service


Rounds the value length up to a given number of cache lines.


int  d_roundup(length)
int  length;


length Specifies the size in bytes to be rounded.


To maintain cache consistency, buffers must occupy entire cache lines. The d_roundup service helps provide that function by rounding the value length up to a given number in integer form.

Execution Environment

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

Implementation Specifics

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

Related Information

The d_align kernel service, d_cflush kernel service, d_clear kernel service.

Understanding Direct Memory Access (DMA) Transfers in AIX Version 4.3 Kernel Extensions and Device Support Programming Concepts.

[ Previous | Next | Contents | Home | Search ]