Document streaming parameter as a strict 0 or 1 value

This commit is contained in:
Andrea Mazzoleni 2026-09-16 08:39:22 +02:00
parent de00981504
commit bfe5ee7643
5 changed files with 12 additions and 10 deletions

View file

@ -37,10 +37,10 @@ library startup before normal RAID operations.
Computes 'np' parity blocks from 'nd' data blocks. Vector 'v' contains
'nd + np' block pointers (data blocks v[0..nd-1], parity blocks
v[nd..nd+np-1]). Each block must be aligned to a 64-byte boundary.
Data blocks are read-only; parity blocks are written. If 'streaming' is
non-zero, non-temporal streaming stores are used where supported to avoid
polluting the CPU cache when parity is written directly to disk. If
'streaming' is zero, normal cached stores are used.
Data blocks are read-only; parity blocks are written. 'streaming' must be
either 0 or 1. If it is 1, non-temporal streaming stores are used where
supported to avoid polluting the CPU cache when parity is written directly
to disk. If it is 0, normal cached stores are used.
void raid_rec(int nr, int *ir, int nd, int np, size_t size, void **v)
Recovers 'nr' failed blocks (data or parity) listed in sorted index array