[ Bottom of Page | Previous Page | Next Page | Contents | Index | Library Home | Legal | Search ]

Technical Reference: Kernel and Subsystems, Volume 1

d_roundup Kernel Service

Purpose

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

Syntax

int  d_roundup(length)

int  length;

Parameter

length Specifies the size in bytes to be rounded.

Description

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.

Related Information

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

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

[ Top of Page | Previous Page | Next Page | Contents | Index | Library Home | Legal | Search ]