mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* Question about Atomic operations
@ 2006-08-31  4:29 Devesh Sharma
  0 siblings, 0 replies; only message in thread
From: Devesh Sharma @ 2006-08-31  4:29 UTC (permalink / raw)
  To: arjan, linux-kernel

Hello Arjan and list,

The documentation related to atomic operations says that the following
functions should be called in SMP safe maner

 void atomic_add(int i, atomic_t *v);
 void atomic_sub(int i, atomic_t *v);
 void atomic_inc(atomic_t *v);
 void atomic_dec(atomic_t *v);

since the implementation of these functions are prefixed with LOCK
prefix (On i386 arch.) which either asserts LOCK# signal or performs
cache locking which gauarentees coherency.

Then why these functions should be called in SMP safe manner?

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2006-08-31  4:29 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2006-08-31  4:29 Question about Atomic operations Devesh Sharma

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®