Spinlocks
brankok_at_dkts.co.yu
Date: 10/18/05
- Next message: Peter T. Breuer: "Re: mounting external hard drive on linux"
- Previous message: Josef Moellers: "Re: mounting external hard drive on linux"
- Next in thread: Kasper Dupont: "Re: Spinlocks"
- Reply: Kasper Dupont: "Re: Spinlocks"
- Reply: Sagar Borikar: "Re: Spinlocks"
- Reply: Josef Moellers: "Re: Spinlocks"
- Reply: Chris Friesen: "Re: Spinlocks"
- Reply: Pete Zaitcev (OTID3): "Re: Spinlocks"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: 18 Oct 2005 00:13:30 -0700
Hello!
I would be most grateful for an explanation.
I am writing a device driver for a device in which data transfer is
interrupt-driven in a way that the device interrupts the processor when
new data has arrived. I have some shared data that I want to protect
from concurrent access, so I decided to use spinlock mechanism. I've
read about functions that work with spinlocks and I decided to use
_irqsave versions of the premitives both in the interrupt and in the
noninterrupt code. Now I'm wondering if I should have used spinlocks at
all. Couldn't I have just disable interrupts in in the noninterrupt
code, do the critical section and then enable interrupts? What am I not
getting?
Thanks in advance
- Next message: Peter T. Breuer: "Re: mounting external hard drive on linux"
- Previous message: Josef Moellers: "Re: mounting external hard drive on linux"
- Next in thread: Kasper Dupont: "Re: Spinlocks"
- Reply: Kasper Dupont: "Re: Spinlocks"
- Reply: Sagar Borikar: "Re: Spinlocks"
- Reply: Josef Moellers: "Re: Spinlocks"
- Reply: Chris Friesen: "Re: Spinlocks"
- Reply: Pete Zaitcev (OTID3): "Re: Spinlocks"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|