Re: [RFC PATCH v1] devres: align devres.data strictly only for devm_kmalloc()
From: Peter Zijlstra
Date: Fri Dec 20 2019 - 12:19:18 EST
On Fri, Dec 20, 2019 at 01:05:43PM +0100, Marc Gonzalez wrote:
> If "fixing" the kmalloc strict alignment requirement on arm64 is too
> hard, maybe it would be possible to shave some of the devm memory
> waste by working with (chained) arrays of devm nodes, instead
> of a straight-up linked list. (Akin to a C++ vector) Removal would
> be expensive, but that's supposed to be a rare operation, right?
xarray might be what you're looking for.