Because init_module is not an RTLinux thread. kmalloc requires services from the Linux kernel; when you're in an RTLinux thread, that kernel is suspeneded, so kmalloc will wait forever.
Hope that helps. Brian > -----Original Message----- > From: Sureshkumar Sutharalingam [mailto:suresh@;icr.a-star.edu.sg] > Sent: Friday, October 18, 2002 5:54 AM > To: [EMAIL PROTECTED] > 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
