On Fri, Jul 12, 2002 at 02:50:11PM -0700, Shripal wrote: > When an interrupt occurs, the ISR schedules a tasklet for further processing. I > have some data that is accessed from both, ioctl and the tasklet. Do I need to > protect this data using critical section? On SMP machines your ioctl could be running at the same time as your tasklet; you should use locks to prevent corruption. I believe tasklets run in interrupt context in addition to just before returning to user space, so I think semaphores aren't available. -- http://www.wirex.com/
Attachment:
pgp00126.pgp
Description: PGP signature