[RFC PATCH v2 2/9] eal: annotate spinlock and rwlock

David Marchand david.marchand at redhat.com
Thu Apr 7 10:20:03 CEST 2022


On Mon, Apr 4, 2022 at 8:21 AM Stephen Hemminger
<stephen at networkplumber.org> wrote:
>
> On Wed, 30 Mar 2022 15:49:49 +0200
> David Marchand <david.marchand at redhat.com> wrote:
>
> > +#ifdef RTE_ANNOTATE_LOCKS
> > +
> > +#define RTE_ANNOTATED_LOCK \
> > +     __attribute__((lockable))
> > +
> > +#define RTE_GUARDED_BY(...) \
> > +     __attribute__((guarded_by(__VA_ARGS__)))
> > +#define RTE_GUARDED_VAR \
> > +     __attribute__((guarded_var))
>
> Could we use attributes that match the existing syntax and lower case.
> That is what was done for hot/cold and format attributes.

Yes, I reconsidered and I'll do that.


-- 
David Marchand



More information about the dev mailing list