Re: [PATCH v2 00/20] Introduce common headers

From: Mark Rutland
Date: Mon Mar 09 2020 - 08:24:38 EST


On Mon, Mar 09, 2020 at 11:07:08AM +0000, Vincenzo Frascino wrote:
> Hi Andy,
>
> On 3/6/20 4:04 PM, Andy Lutomirski wrote:
>
> [...]
>
> >>
> >> To solve the problem, I decided to use the approach below:
> >> * Extract from include/linux/ the vDSO required kernel interface
> >> and place it in include/common/
> >
> > I really like the approach, but Iâm wondering if âcommonâ is the
> > right name. This directory is headers that arenât stable ABI like
> > uapi but are shared between the kernel and the vDSO. Regular user
> > code should *not* include these, right?
> >
> > Would âvdsoâ or perhaps âprivate-abiâ be clearer?
>
> Thanks! These headers are definitely not "uapi" like and they are meant to
> evolve in future like any other kernel header. We have just to make sure that
> the evolution does not break what we are trying to achieve with this series.

Given we already include uapi/* headers in kernel code, I think placing
these in a vdso/* namespace would be fine. I think that more clearly
expresses the constraints on the headers than private-abi/* would.

Thanks,
Mark.