mån 2023-03-27 klockan 00:26 +0100 skrev andy pugh:
> I am working on a HAL driver at the moment, and have started to be
> concerned about mis-use(?) of hal_malloc.
> 
> Looking at the hostmot2 code the data structures are carefully split
> into
> HAL pins and other data. The HAL pins parts are hal_malloc-ed and the
> data
> parts are rtapi_kmalloc-ed (which is just plain malloc in uspace)
> 
> Other components are more lazy, mux_generic for example, and even
> stepgen.c
> hal_malloc the entire data structure.
> 
> Possibly this is why we have reports of users running out of hal
> memory. It
> may not be that they have reached the maximum number of pins (which
> is
> rally rather a lot) but that the supporting data has eaten it up.
If I remember correct it is relatively simple to increase amount of hal
memory.



_______________________________________________
Emc-developers mailing list
Emc-developers@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/emc-developers

Reply via email to