[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: RE: [rtl] malloc, timers, and crashes.



Two points:
	1) It's quite trivial to do kernel calls from RTLinux: look that
	the implementation of rtl_printf for an example. I posted two
	mallocs a while back.

	2) It's _wrong_ to call malloc from RT code.
		Malloc can suspend or fail (more realistically, any way of calling it
		from  RTL can suspend)
		If you can tolerate a suspend in RT code, you don't have
		a RT constraint.
		If you don't have an RT constraint - don't run in RT
		space. Allocate memory in a Linux driver and pass it to
		RTL


			
			
On Fri, Dec 07, 2001 at 10:04:05AM -0500, Ken Emmons, Jr. wrote:
> Hello,
> 
> It has been pointed out that kernel calls(including kmalloc) cannot be called from within RT. That is kind of what I expected after finding this bug, but I was hopping that there would be some solution for having an equivelent of a malloc() call. I was thinking of writing a rt_malloc() function. 
> 
> What do you folks think about this? Has anyone else written it yet??
> 
> ~Ken
> 
> -- [rtl] ---
> To unsubscribe:
> echo "unsubscribe rtl" | mail majordomo@rtlinux.org OR
> echo "unsubscribe rtl <Your_email>" | mail majordomo@rtlinux.org
> --
> For more information on Real-Time Linux see:
> http://www.rtlinux.org/