[RFC PATCH 0/4] hwspinlock: refactor headers into public provider/consumer pair

Andy Shevchenko andriy.shevchenko at intel.com
Mon Jan 26 02:20:55 PST 2026


On Mon, Jan 26, 2026 at 11:13:59AM +0100, Wolfram Sang wrote:
> 
> > I don't like the idea of sharing internal stuff. Why would we need to have
> > a struct hwspinlock to be visible?
> 
> Providers need it, especially the 'priv' member. Consumers won't see it.

But can't we make it opaque?

We may have getters and setters for the priv member...

-- 
With Best Regards,
Andy Shevchenko





More information about the linux-arm-kernel mailing list