Re: scheduler is a process and driver context?

2010-06-17 Thread Mohammed Gamal
On Thu, Jun 17, 2010 at 7:30 PM, Sudipta GHOSH wrote: > Hi, > > Memory management , scheduling is part of core kernel. > > Is it a process or special code resides in RAM? > The entire kernel is special code that resides in RAM, hence the fact it's a "monolithic" kernel. > As I see init process ha

Re: best way to read kernel code

2010-04-26 Thread Mohammed Gamal
On Mon, Apr 26, 2010 at 10:05 AM, SandeepKsinha wrote: > On Mon, Apr 26, 2010 at 12:58 PM, Onkar Mahajan wrote: >> Hi All , >> >> What is the fastest and the best way /method to read >> lots of kernel code ? >> > > Book: Understanding the Linux Kernel, O'reily publication Keep in mind that the b

Re: Need some help in interpreting a code snippet

2009-12-10 Thread Mohammed Gamal
On Thu, Dec 10, 2009 at 1:54 PM, Nagaprabhanjan Bellari wrote: > The code snippet is in linux/kernel/softirq.c:__do_softirq(): > == >     do { >         if (pending & 1) { >             int preempt_count = preempt_count(); >             h->action(h); >             if (preempt_count != preempt_coun

Memory Management Question

2009-11-28 Thread Mohammed Gamal
Hello All, I am currently reading on memory management in the Linux kernel, and I am wondering what's the relation ship between virtual addresses and 'struct page' s. Now I do understand that a virtual address will eventually map into a PTE and an offset that represent the physical memory address,

Re: Question about kernel preemption

2009-08-14 Thread Mohammed Gamal
On Fri, Aug 14, 2009 at 4:19 PM, Greg Freemyer wrote: > On Fri, Aug 14, 2009 at 7:12 AM, Mohammed Gamal wrote: >> On Fri, Aug 14, 2009 at 11:25 AM, Mulyadi >> Santosa wrote: >>> On Fri, Aug 14, 2009 at 12:15 PM, Michael >>> Blizek wrote: >>>> Hi! >&

Re: Question about kernel preemption

2009-08-14 Thread Mohammed Gamal
On Fri, Aug 14, 2009 at 11:25 AM, Mulyadi Santosa wrote: > On Fri, Aug 14, 2009 at 12:15 PM, Michael > Blizek wrote: >> Hi! >> >> On 00:08 Fri 14 Aug     , Mohammed Gamal wrote: >> >> ... >> >>> As far as I understood, Michi's answer

Re: Question about kernel preemption

2009-08-13 Thread Mohammed Gamal
On Thu, Aug 13, 2009 at 11:02 PM, Microbit_Ubuntu wrote: > Hi Mohammed, > > On Thu, 2009-08-13 at 15:59 +0300, Mohammed Gamal wrote: >> Hi All, >> I know that kernel preemption exists in order to allow high-priority >> processes to interrupt the kernel if the kernel exe

Question about kernel preemption

2009-08-13 Thread Mohammed Gamal
Hi All, I know that kernel preemption exists in order to allow high-priority processes to interrupt the kernel if the kernel executes on relatively long code paths in order to improve latency times and process responsiveness. However, I am curious to know when and where the kernel gets preempted an