Thanks a lot. It was to do with CONFIG_SPARSE_IRQ. Just overshot my sight.
I had exported a wrong irq_to_desc() which is under the belt of
CONFIG_SPARSE_IRQ which was not configured.
Its working now

Regards,
Prabhu


On Wed, Aug 11, 2010 at 10:34 PM, Mulyadi Santosa <[email protected]
> wrote:

> I don't exactly know the problem...but here's something to think...
>
> On Wed, Aug 11, 2010 at 13:07, Prabhu nath <[email protected]> wrote:
> > Hi,
> >
> >         I am facing a peculiar behaviour on Kernel version 2.6.34.1
> > (http://lxr.linux.no/#linux+v2.6.34.1).
> >
> >        For my experimentation I just wanted to use the following two
> kernel
> > functions in my Kernel module
> >
> >         1. find_task_by_vpid
> > (http://lxr.linux.no/#linux+v2.6.34.1/kernel/pid.c#L388)
> >         2. irq_to_desc
> > (http://lxr.linux.no/#linux+v2.6.34.1/kernel/irq/handle.c#L138)
> >
> >            Since these two functions are not exported by the Kernel, I
> > exported these functions, built the kernel and used in my kernel module.
>
> Seeing around handle.c, precisely lines surrounding the related
> function, I see this:
> endif /* !CONFIG_SPARSE_IRQ */
>
> uhum...seems related to sparse IRQ handling..so basic question here:
> which one did you export? the one in CONFIG_SPARSE_IRQ=y? or the other
> one?
>
>
> --
> regards,
>
> Mulyadi Santosa
> Freelance Linux trainer and consultant
>
> blog: the-hydra.blogspot.com
> training: mulyaditraining.blogspot.com
>

Reply via email to