mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* atomic_inc and spin_lock_irq
@ 2014-12-18 21:07 Rogelio M. Serrano Jr.
  2014-12-18 22:04 ` Mihai Donțu
  2014-12-23  2:08 ` PaX Team
  0 siblings, 2 replies; 3+ messages in thread
From: Rogelio M. Serrano Jr. @ 2014-12-18 21:07 UTC (permalink / raw)
  To: linux-kernel, PaX Team

whats the difference between:

atomic_inc(&port->count);

and

spin_lock_irq(&port->lock);
++port->count;
spin_unlock_irq(&port->lock);

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

end of thread, other threads:[~2014-12-23  2:54 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2014-12-18 21:07 atomic_inc and spin_lock_irq Rogelio M. Serrano Jr.
2014-12-18 22:04 ` Mihai Donțu
2014-12-23  2:08 ` PaX Team

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®