Re: What's the relationship between pid and pid_t

2010-07-20 Thread Mulyadi Santosa
Let's jump in and share more thoughts... :) On Tue, Jul 20, 2010 at 12:16, Aiolia Lea cas...@gmail.com wrote: Hi, 1) If the user space process has existed, why the kernel still need to store a reference to it? Because kernel still needs to access it? 2) From understanding the linux kernel

Help: how to debug scheduling with irqs disabled

2010-07-20 Thread Michael Zhu
Hi, In my box, there is an error: BUG: scheduling with irqs disabled: ledd/0x/224 caller is rt_spin_lock_slowlock+0x13c/0x20c If process ledd is killed, BUG message is gone. Would you like to give me some suggestion to debug ? Michael -- To unsubscribe from this list: send an email

Re: How to fix a module's Section mismatch warnings?

2010-07-20 Thread Bob Beers
On Mon, Jul 19, 2010 at 1:29 PM, Youngwhan Song breadn...@gmail.com wrote: I believe the patch should be in the driver code by either changing names or using of __init_refok rather than modifying of kernel. Yes, I agree, some change to the driver code, but which names do I change? variables?,

Re: Help: how to debug scheduling with irqs disabled

2010-07-20 Thread Michael Blizek
Hi! On 17:42 Tue 20 Jul , Michael Zhu wrote: Hi, In my box, there is an error: BUG: scheduling with irqs disabled: ledd/0x/224 caller is rt_spin_lock_slowlock+0x13c/0x20c If process ledd is killed, BUG message is gone. Would you like to give me some suggestion to debug ?

Re: About #if !defined(MB_CACHE_INDEXES_COUNT) || (MB_CACHE_INDEXES_COUNT 0) in mbcache

2010-07-20 Thread Pei Lin
look at the code. static inline int 105mb_cache_indexes(struct mb_cache *cache) 106{ 107#ifdef MB_CACHE_INDEXES_COUNT 108return MB_CACHE_INDEXES_COUNT; 109#else 110return cache-c_indexes_count; 111#endif 112} http://lxr.linux.no/linux+v2.6.34.1/fs/mbcache.c#L107 2010/7/17

Re: Get UTC from RDTSC

2010-07-20 Thread Pei Lin
2010/7/17 Radhesh Kamath rmk.l...@gmail.com: On Fri, Jul 16, 2010 at 12:36 PM, Jan Ceuleers jan.ceule...@computer.org wrote: On 15/07/10 18:42, Radhesh Kamath wrote: I have a kernel module that sends me an RDTSC value to userspace, and I need to get a UTC timestamp based on this. As far as I

Re: Get UTC from RDTSC

2010-07-20 Thread Asael Temple
On Tue, 20 Jul 2010 20:06:27 -0700, Pei Lin telent...@gmail.com wrote: 2010/7/17 Radhesh Kamath rmk.l...@gmail.com: On Fri, Jul 16, 2010 at 12:36 PM, Jan Ceuleers jan.ceule...@computer.org wrote: On 15/07/10 18:42, Radhesh Kamath wrote: I have a kernel module that sends me an RDTSC value to