<BLOCKQUOTE class=replbq style="PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: #1010ff 2px solid"> <div>>You should still put the spin_lock calls into your code because >you<BR>>never know if someone else will compile it and for another >target. If<BR>>someone would, for example, compile the same code for a SMP >machine then<BR>>the spin_lock will actually lock.<BR></div> <div>I used the spinlock both in an interrupt handler to protect a group of variables (because in an interrupt I can't use a semaphore) and the same spinlock in a ioctl handler where the same group of variables is accessed. Is this wrong? I have a 2.6.19.2 linux kernel.</div> <div> </div> <div>Thank you,</div> <div>Melinda.</div> <div> </div> <div> </div> <div> </div></BLOCKQUOTE><p> 
<hr size=1>Ready for the edge of your seat?
<a href="http://us.rd.yahoo.com/evt=48220/*http://tv.yahoo.com/">Check out tonight's top picks</a> on Yahoo! TV.