* Badness in sleep_on_timeout on kernel 2.6.9-1.667 ( fedora core 3)
@ 2006-02-07 20:00 anil dahiya
2006-02-07 21:50 ` David Woodhouse
2006-02-12 13:17 ` Arjan van de Ven
0 siblings, 2 replies; 5+ messages in thread
From: anil dahiya @ 2006-02-07 20:00 UTC (permalink / raw)
To: linux-kernel, kernelnewbies
Hello
I am creating kernel thread on fedora core 4
(2.6.9-1.667)and my getting oops something like
Badness in sleep_on_timeout at kernel/sched.c:3022
[<02302bc3>] sleep_on_timeout+0x5d/0x23a
[<0211b919>] default_wake_function+0x0/0xc
can any suggest how i can avoid this oops.
Regards,
Anil
--- anil dahiya <ak_ait@yahoo.com> wrote:
> Hi Sam
> Thanks fop your help ..but my problem is not solved
> it
> ...i putting my real problem here below.
>
> 1>my fist need is to make module1.ko made using
> a1/a1.c , a1/a11.c & a2/a2.c a2/a22.c and all .c
> file
> use /home/include/a.h
>
>
> 2>Now my 2nd need is to make module2.ko using
> module1.ko and b/b1.c & b/b11.c (these both .c files
> use /home/include/a.h and /home/module2/include/b.h)
>
>
> In short my directory structure is as:
>
> /home/------
> |_ include _
> | |
> | a.h
> |
> |___module1_
> | |__ a1 ____________
> | | | |
> | | a1.c a11.c
> | |
> |__ a2 ___________
> | | | |
> | | a2.c a22.c
> |
> |___ moudule2_
> | |
> | |__include _
> | | |
> | | b.h
> | |___b1________
> | | |
> | b1.c b11.c
>
>
> Looking forward for ur reply
> thanks in advance
> ---- Anil
>
>
> --- anil dahiya <ak_ait@yahoo.com> wrote:
>
> > hello
> > I want to make kernel module dummy.ko using
> multiple
> > .c and .h files. In short i am telling .c and .h
> > files
> > with directory structure
> >
> > 1> dummy.ko should made be using module1.ko and
> > module2.o (i.e
> > module2.o uses module1.ko to make dummy.ko)
> >
> > 2> module1.ko made using a1/a1.c & a2/a2.c and
> both
> > .c file
> > use /home/include/a.h
> > 3> module2.o should made using b/b1.c which use
> > use /home/module2/include/b.h
> >
> > Suggest me tht should make i make module2.o or
> > module2.ko and then combine it with module1.o to
> > make
> > dummy.ko
> >
> >
> > /home/------
> > |_ include _
> > | |
> > | a.h
> > |
> > |___module1_
> > | |__ a1 ____
> > | | |
> > | | a1.c
> > | |
> > |__ a2 ____
> > | | |
> > | | a2.c
> > |
> > |___ moudule2_
> > | |
> > | |__include _
> > | | |
> > | | b.h
> > | |___b1__
> > | |
> > | b1.c
> >
> >
> > Looking forward for ur reply
> > thanks in advance
> > ---- Anil
> >
> >
> >
> > __________________________________________
> > Yahoo! DSL Something to write home about.
> > Just $16.99/mo. or less.
> > dsl.yahoo.com
> >
> >
> > --
> > Kernelnewbies: Help each other learn about the
> Linux
> > kernel.
> > Archive:
> > http://mail.nl.linux.org/kernelnewbies/
> > FAQ: http://kernelnewbies.org/faq/
> >
> >
>
>
>
>
> __________________________________________
> Yahoo! DSL Something to write home about.
> Just $16.99/mo. or less.
> dsl.yahoo.com
>
>
__________________________________________________
Do You Yahoo!?
Tired of spam? Yahoo! Mail has the best spam protection around
http://mail.yahoo.com
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: Badness in sleep_on_timeout on kernel 2.6.9-1.667 ( fedora core 3)
2006-02-07 20:00 Badness in sleep_on_timeout on kernel 2.6.9-1.667 ( fedora core 3) anil dahiya
@ 2006-02-07 21:50 ` David Woodhouse
2006-02-08 5:54 ` anil dahiya
2006-02-12 13:17 ` Arjan van de Ven
1 sibling, 1 reply; 5+ messages in thread
From: David Woodhouse @ 2006-02-07 21:50 UTC (permalink / raw)
To: anil dahiya; +Cc: linux-kernel, kernelnewbies
On Tue, 2006-02-07 at 12:00 -0800, anil dahiya wrote:
> Badness in sleep_on_timeout at kernel/sched.c:3022
> [<02302bc3>] sleep_on_timeout+0x5d/0x23a
> [<0211b919>] default_wake_function+0x0/0xc
>
> can any suggest how i can avoid this oops.
Stop using sleep_on_timeout(). It's almost certainly buggy.
--
dwmw2
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: Badness in sleep_on_timeout on kernel 2.6.9-1.667 ( fedora core 3)
2006-02-07 21:50 ` David Woodhouse
@ 2006-02-08 5:54 ` anil dahiya
2006-02-08 6:40 ` Gaurav Dhiman
0 siblings, 1 reply; 5+ messages in thread
From: anil dahiya @ 2006-02-08 5:54 UTC (permalink / raw)
To: David Woodhouse; +Cc: linux-kernel, kernelnewbies
then which function i should use...beacause same
problem is with interruptible_sleep_on
thanks & Regards,
anil
--- David Woodhouse <dwmw2@infradead.org> wrote:
> On Tue, 2006-02-07 at 12:00 -0800, anil dahiya
> wrote:
> > Badness in sleep_on_timeout at
> kernel/sched.c:3022
> > [<02302bc3>] sleep_on_timeout+0x5d/0x23a
> > [<0211b919>] default_wake_function+0x0/0xc
> >
> > can any suggest how i can avoid this oops.
>
> Stop using sleep_on_timeout(). It's almost certainly
> buggy.
>
> --
> dwmw2
>
>
> --
> Kernelnewbies: Help each other learn about the Linux
> kernel.
> Archive:
> http://mail.nl.linux.org/kernelnewbies/
> FAQ: http://kernelnewbies.org/faq/
>
>
__________________________________________________
Do You Yahoo!?
Tired of spam? Yahoo! Mail has the best spam protection around
http://mail.yahoo.com
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: Badness in sleep_on_timeout on kernel 2.6.9-1.667 ( fedora core 3)
2006-02-08 5:54 ` anil dahiya
@ 2006-02-08 6:40 ` Gaurav Dhiman
0 siblings, 0 replies; 5+ messages in thread
From: Gaurav Dhiman @ 2006-02-08 6:40 UTC (permalink / raw)
To: anil dahiya; +Cc: David Woodhouse, linux-kernel, kernelnewbies
On 2/8/06, anil dahiya <ak_ait@yahoo.com> wrote:
> then which function i should use...beacause same
> problem is with interruptible_sleep_on
prefer to use wait_event_timeout() ; see its code in kernel.
Its written fro handling race conditions, which might occur in
interruptible_sleep_on() or other such functions.
-Gaurav
> thanks & Regards,
> anil
>
> --- David Woodhouse <dwmw2@infradead.org> wrote:
>
> > On Tue, 2006-02-07 at 12:00 -0800, anil dahiya
> > wrote:
> > > Badness in sleep_on_timeout at
> > kernel/sched.c:3022
> > > [<02302bc3>] sleep_on_timeout+0x5d/0x23a
> > > [<0211b919>] default_wake_function+0x0/0xc
> > >
> > > can any suggest how i can avoid this oops.
> >
> > Stop using sleep_on_timeout(). It's almost certainly
> > buggy.
> >
> > --
> > dwmw2
> >
> >
> > --
> > Kernelnewbies: Help each other learn about the Linux
> > kernel.
> > Archive:
> > http://mail.nl.linux.org/kernelnewbies/
> > FAQ: http://kernelnewbies.org/faq/
> >
> >
>
>
> __________________________________________________
> Do You Yahoo!?
> Tired of spam? Yahoo! Mail has the best spam protection around
> http://mail.yahoo.com
>
> --
> Kernelnewbies: Help each other learn about the Linux kernel.
> Archive: http://mail.nl.linux.org/kernelnewbies/
> FAQ: http://kernelnewbies.org/faq/
>
>
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: Badness in sleep_on_timeout on kernel 2.6.9-1.667 ( fedora core 3)
2006-02-07 20:00 Badness in sleep_on_timeout on kernel 2.6.9-1.667 ( fedora core 3) anil dahiya
2006-02-07 21:50 ` David Woodhouse
@ 2006-02-12 13:17 ` Arjan van de Ven
1 sibling, 0 replies; 5+ messages in thread
From: Arjan van de Ven @ 2006-02-12 13:17 UTC (permalink / raw)
To: anil dahiya; +Cc: linux-kernel, kernelnewbies
On Tue, 2006-02-07 at 12:00 -0800, anil dahiya wrote:
> Hello
> I am creating kernel thread on fedora core 4
> (2.6.9-1.667)and my getting oops something like
>
> Badness in sleep_on_timeout at kernel/sched.c:3022
> [<02302bc3>] sleep_on_timeout+0x5d/0x23a
> [<0211b919>] default_wake_function+0x0/0xc
you forgot to post a URL to your code
(and you use sleep_on_* family of APIs which is a bug in itself)
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2006-02-12 13:17 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2006-02-07 20:00 Badness in sleep_on_timeout on kernel 2.6.9-1.667 ( fedora core 3) anil dahiya
2006-02-07 21:50 ` David Woodhouse
2006-02-08 5:54 ` anil dahiya
2006-02-08 6:40 ` Gaurav Dhiman
2006-02-12 13:17 ` Arjan van de Ven
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®