Lines Matching full:local
5 Semantics and Behavior of Local Atomic Operations
11 This document explains the purpose of the local atomic operations, how
14 those local variables across CPUs when the order of memory writes matters.
26 Purpose of local atomic operations
29 Local atomic operations are meant to provide fast and highly reentrant per CPU
39 Local atomic operations only guarantee variable modification atomicity wrt the
54 ``asm-generic/local.h`` in your architecture's ``local.h`` is sufficient.
63 Rules to follow when using local atomic operations
66 * Variables touched by local ops must be per cpu variables.
68 * This CPU can use local ops from any context (process, irq, softirq, nmi, ...)
70 * Preemption (or interrupts) must be disabled when using local ops in
73 actual local op.
74 * When using local ops in interrupt context, no special care must be
75 taken on a mainline kernel, since they will run on the local CPU with
79 * Reading the local cpu variable will provide the current copy of the
87 How to use local atomic operations
93 #include <asm/local.h>
104 local atomic operations: it makes sure that preemption is disabled around write
120 Those local counters can be read from foreign CPUs to sum the count. Note that
137 ``local.h``::
139 /* test-local.c
141 * Sample module for local.h usage.
145 #include <asm/local.h>
202 MODULE_DESCRIPTION("Local Atomic Ops");