FYI: there has been RTL example code calling malloc from RTL that
I put on my web pages about 2 years ago. If people want it, we can
release it GPL, in the meantime, take a look
http://www2.fsmlabs.com/~yodaiken/hacks/
On Fri, Oct 18, 2002 at 08:46:03PM +0200, Der Herr Hofrat wrote:
> > 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 !!!
>
> becuase init_module may sleep within an rt-thread thats a problem - use
> kmalloc with GFP_ATOMIC and you should be safe (aside off course that
> kmalloc can fail and retrun a NULL pointer - so check it as usual).
>
> hofrat
> _______________________________________________
> Rtl mailing list
> [EMAIL PROTECTED]
> http://www2.fsmlabs.com/mailman/listinfo.cgi/rtl
--
---------------------------------------------------------
Victor Yodaiken
Finite State Machine Labs: The RTLinux Company.
www.fsmlabs.com www.rtlinux.com
_______________________________________________
Rtl mailing list
[EMAIL PROTECTED]
http://www2.fsmlabs.com/mailman/listinfo.cgi/rtl