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
Item | Description |
---|---|
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.