Re: [PATCH v4 1/7] lmb: replace lmb_reserve() and lmb_alloc_addr() API's

2025-06-16 Thread Ilias Apalodimas
Hi Sughosh [...] > --- a/lib/lmb.c > +++ b/lib/lmb.c > @@ -488,6 +488,54 @@ void lmb_dump_all(void) > #endif > } > > +/** > + * lmb_can_reserve_region() - check if the region can be reserved > + * @base: base address of region to be reserved > + * @size: size of region to be reserved > + * @fl

[PATCH v4 1/7] lmb: replace lmb_reserve() and lmb_alloc_addr() API's

2025-06-11 Thread Sughosh Ganu
There currently are multiple allocation API's in the LMB module. There are a couple of API's for allocating memory(lmb_alloc() and lmb_alloc_base()), and then there are two for requesting a reservation for a particular memory region (lmb_reserve() and lmb_alloc_addr()). Introduce a single API lmb_a