Re: Regarding high mem

2012-10-17 Thread Kshemendra KP
On Wed, Oct 17, 2012 at 2:04 PM, Chetan Nanda wrote: > > > On Tue, Oct 16, 2012 at 5:47 PM, Kshemendra KP > wrote: > >> >>On x86 kernel is normally split into 3GB (user) : 1 GB (Kernel) >> spaces. Kernel can only directly >>manipulate 1

Regarding high mem

2012-10-16 Thread Kshemendra KP
On x86 kernel is normally split into 3GB (user) : 1 GB (Kernel) spaces. Kernel can only directly manipulate 1 GB (around 889 MB) from the PAGE_OFFSET (0xC000). The user space memofy below PAGE_OFFSET kernel can't directly access, it considers this memory as high memory. Kernel needs

smp_rmb() in consume_skb

2012-10-11 Thread Kshemendra KP
Hi, When I was looking into consume_skb() routine (net/core/skbuff.c), there is smp_rmb() read barrier is present. It is not clear why this is needed here. Basically this routine frees sk_buff if only one user reference is theere void consume_skb(struct sk_buff * skb) {

Re: how to process data recvd from a device that wont give interrupts

2012-10-04 Thread Kshemendra KP
, Kshemendra KP wrote: > > softirqs and tasklets run in interrupt context and must not sleep. > One cannot use copy_from_user() and copy_to_user() in both of them. > > > Regards > > Kshemendra > > > > On Fri, Oct 5, 2012 at 10:24 AM, devendra.aaru wrote: > >

Re: how to process data recvd from a device that wont give interrupts

2012-10-04 Thread Kshemendra KP
softirqs and tasklets run in interrupt context and must not sleep. One cannot use copy_from_user() and copy_to_user() in both of them. Regards Kshemendra On Fri, Oct 5, 2012 at 10:24 AM, devendra.aaru wrote: > On Thu, Oct 4, 2012 at 1:50 PM, Mulyadi Santosa > wrote: > > Hi... > > > > On Thu

Re: Questions about process state manipulation

2012-09-20 Thread Kshemendra KP
On Thu, Sep 20, 2012 at 10:45 AM, Kshemendra KP wrote: > > Hi Amit, > >An executin task can be is interrupted by interrupts Timer > interrupt updates > all the time related things in the sytem. One of the path where scheduler > is invoked > is Timer Softirq. Sc

Re: Questions about process state manipulation

2012-09-19 Thread Kshemendra KP
Hi Amit, An executin task can be is interrupted by interrupts Timer interrupt updates all the time related things in the sytem. One of the path where scheduler is invoked is Timer Softirq. Scheduler verifies whether the current executing tasks time slice is over, or any other task that has

Re: Questions about process state manipulation

2012-09-17 Thread Kshemendra KP
On Tue, Sep 18, 2012 at 9:32 AM, Amit Gupta wrote: > Hi All, > > I had a question about manipulating process state information in the > kernel and am curious about the right way to go about it. > (I'm just messing around with some stuff to try and understand the kernel > better). I had 2 question

Mult core cpus - SMP

2012-09-13 Thread Kshemendra KP
Hi, Does multi core CPU act like SMP system. Regards Kshemendra ___ Kernelnewbies mailing list Kernelnewbies@kernelnewbies.org http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies

Re: kernel stack memory

2012-09-13 Thread Kshemendra KP
, shubham sharma wrote: > Hi, > > On Thu, Sep 13, 2012 at 12:29 PM, Kshemendra KP > wrote: > > > > In user space when you write beyond your address space (if your write > > crosses > > the page boundary alloacted to you), then process is terminated. In the > >

Re: kernel stack memory

2012-09-13 Thread Kshemendra KP
In user space when you write beyond your address space (if your write crosses the page boundary alloacted to you), then process is terminated. In the kernel you are still writinng inside the kernel address space. Your write is not beyond kernel address space. Secondly you are corrupting some other

module loading issue module_layout

2012-09-05 Thread Kshemendra KP
Hi As the kernel source not available for running kernel code of an Andodiod tablet, I could not able to match module_layout address of my loadable module with the android tablet running kernel even the kernel versions are same. Is there a way to generate build environment in such a sit