Re: Re: Understanding non-preemptive kernel

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

 



Hi...

> thanks for the explanation
> about the meaning of "preempt_count" is it as it's name implies ?
> does it means "how many times the kernel has been preempted" or "how
> many times this process has been preempted while it was in the
> kernel" or it has nothing to do with the count and it's just a flag ?

Perhaps it has same meaning like the lock depth of the BKL (Big Kernel 
Lock) or any other lock. In other word, kernel preemption is allowed 
only when preempt_count is zero. Multiple kernel execution path might 
increase this count, so "zero" here means all the kernel paths have 
left critical section.

Hope it helps

regards

Mulyadi


--
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