init_module() is executed in the context of the normal Linux kernel where
kmalloc() also lives.

It's almost guaranteed to hang the system if you call a normal Linux kernel
function inside a real-time thread because the Linux scheduler then takes
over, usually with interrupts really turned off and they never get turned
back on again.

    Norm

----- Original Message -----
From: Sureshkumar Sutharalingam <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Friday, October 18, 2002 6:54 AM
Subject: [Rtl]kmalloc inside RTLinux Thread ?????


> Hi
>
> Could someone please explain me why using kmalloc() inside a RTL thread
> make the system hangs, whereas it works fine inside init_module()
> routine !!!
> I am using RTLinux 3.0 with    linux kernel 2.2.18.
>
> thanks
> regards
> Suresh
> _______________________________________________
> Rtl mailing list
> [EMAIL PROTECTED]
> http://www2.fsmlabs.com/mailman/listinfo.cgi/rtl

_______________________________________________
Rtl mailing list
[EMAIL PROTECTED]
http://www2.fsmlabs.com/mailman/listinfo.cgi/rtl

Reply via email to