On Mon, May 13, 2024 at 10:33:18AM +0200, Przemek Kitszel wrote: > What if I want to store some struct, potentially with need of some init > call (say, there will be a spinlock there)? Yes, that specific pattern is definately a bit tricky, I have a version in iommufd and I think at least someplace else... A helper of some sort would be nice and could do a bit more work to be optimal. Jason