|
NAMEcasueword , casueword32 ,
casuword , casuword32 —
fetch, compare and store data from user-space
SYNOPSIS#include <sys/types.h>
#include <sys/systm.h>
int
int
u_long
uint32_t
DESCRIPTIONThecasueword functions are designed to perform atomic
compare-and-swap operation on the value in the usermode memory of the current
process.
The The callers of RETURN VALUESThecasuword () and casuword32 ()
functions return the data fetched or -1 on failure. The
casueword () and casueword32 ()
functions return 0 on success, -1 on failure to access memory, and 1 when
comparison or store failed. The store can fail on
load-linked/store-conditional architectures.
SEE ALSOatomic(9), fetch(9), store(9)
Visit the GSP FreeBSD Man Page Interface. |