On Tue, 21 Jan 2025, Qing Zhao wrote:

> > On Jan 20, 2025, at 16:19, Joseph Myers <josmy...@redhat.com> wrote:
> > 
> > On Sat, 18 Jan 2025, Kees Cook wrote:
> > 
> >> Gaining access to global variables is another gap Linux has -- e.g. we
> >> have arrays that are sized by the global number-of-cpus variable. :)
> > 
> > Note that it's already defined that counted_by takes an identifier for a 
> > structure member (i.e. not an expression, not following the name lookup 
> > rules used in expressions).  So some different syntax that only takes an 
> > expression and not an identifier interpreted as a structure member would 
> > be needed for anything that allows use of a global variable.
> 
> If we need to add such syntax for counted_by (I,e,  an expresson), can we 
> still keep the same attribute
> Name, all we need a new attribute name for the new syntax?

If you want a different syntax that's potentially incompatible or 
ambiguous with cases currently accepted, that would indicate having a new 
attribute name for the new syntax.

-- 
Joseph S. Myers
josmy...@redhat.com

Reply via email to