OpenBSD Handbook Manuals
Search

arm_drain_writebuf(2)

Canonical URL: /arm_drain_writebuf.2/

ARM_DRAIN_WRITEBUF(2) System Calls Manual (arm) ARM_DRAIN_WRITEBUF(2)

arm_drain_writebufdrains the CPU write buffer

/* -larm */
#include <machine/sysarch.h>

int
arm_drain_writebuf(void);

() will make sure that all the entries in the processor write buffer are written out to memory.

Not all processors support this operation (currently only the SA110 does). Those processes that do not, treat this function as a null-op.

arm_drain_writebuf() will never fail so will always return 0.

StrongARM Data Sheet

OpenBSD 7.9 June 10, 2025 ARM_DRAIN_WRITEBUF(2)

Need conceptual guidance? Continue in the OpenBSD Handbook.