Re: [PATCH v6 bpf-next 3/9] bpf: Introduce KF_ARG_PTR_TO_CONST_STR

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Wed, Nov 1, 2023 at 10:59 PM Alexei Starovoitov
<alexei.starovoitov@xxxxxxxxx> wrote:
>
> On Tue, Oct 24, 2023 at 4:56 PM Song Liu <song@xxxxxxxxxx> wrote:
> >
> >
> > +2.2.5 __const_str Annotation
> > +----------------------------
> > +This annotation is used to indicate that the argument is a constant string.
> > +
> > +An example is given below::
> > +
> > +        __bpf_kfunc bpf_get_file_xattr(..., const char *name__const_str, ...)
>
> After sleeping on it this still looks too verbose to me.
> 'const' is repeated back to back.
> Let's use __str suffix?

Yeah, the first const should be enough. Let's use __str.

Thanks,
Song

>
> > +                       ret = check_reg_const_str(env, reg, regno);
>
> I don't mind that helper has a more verbose name.





[Index of Archives]     [Linux Samsung SoC]     [Linux Rockchip SoC]     [Linux Actions SoC]     [Linux for Synopsys ARC Processors]     [Linux NFS]     [Linux NILFS]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]


  Powered by Linux