Re: ISR and process context...

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Fri, 2003-01-17 at 06:35, Omanakuttan wrote:

> What should I make out of this? I understand the ISR is executed in some 
> process context. But current->pid ==0 confuses me. is 0 pid of some 
> kernel thread (swapper?) or does it mean that ISR is executed in kernel 
> context?

current->pid in an interrupt handler is equal to the pid of the task
that was executing when the handler was invoked, as you note.

current->pid==0 implies the idle task (swapper) was running.

	Robert Love

--
Kernelnewbies: Help each other learn about the Linux kernel.
Archive:       http://mail.nl.linux.org/kernelnewbies/
FAQ:           http://kernelnewbies.org/faq/



[Index of Archives]     [Newbies FAQ]     [Linux Kernel Mentors]     [Linux Kernel Development]     [IETF Annouce]     [Git]     [Networking]     [Security]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux SCSI]     [Linux ACPI]
  Powered by Linux