Skip to contentSkip to conversation

atomic.h vs spinlock.h

Linux-ia64 Umut Aymakoglu 1 participant 1 message Jun 9, 2003

lore
Share & tools
lore
#0 lore raw

Hi -
2 questions actually:

1) what is the difference between the macros defined in asm/atomic.h and asm/spinlock.h. (usage and purpose wise)?

2) If I need to use asm/atomic.h, which macro can I use to test-and-set?

thanks,
Umut