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.
The d_roundup service can be called from either the process or interrupt environment.
The d_roundup kernel service is part of Base Operating System (BOS) Runtime.
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.