All of lore.kernel.org
 help / color / mirror / Atom feed
* atomic read and increment question
@ 2014-03-18  8:26 noman pouigt
  2014-03-18 11:10 ` Clemens Ladisch
  2014-03-18 12:52 ` Paul E. McKenney
  0 siblings, 2 replies; 3+ messages in thread
From: noman pouigt @ 2014-03-18  8:26 UTC (permalink / raw)
  To: paulmck, rostedt, rusty, gregkh; +Cc: linux-kernel

Hello,

I looked through the documentation for atomic
operations but couldn't find out the api for following
operation:

x = 1;
temp = atomic_read_increment(x);

so basically this will read the old value of x in temp
and then increment x.

so temp = 1 and x = 2.

Is this api already available?

Thanks,

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2014-03-18 12:53 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-03-18  8:26 atomic read and increment question noman pouigt
2014-03-18 11:10 ` Clemens Ladisch
2014-03-18 12:52 ` Paul E. McKenney

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.