All of lore.kernel.org
 help / color / mirror / Atom feed
From: David Vernet <void@manifault.com>
To: lsf-pc@lists.linux-foundation.org
Cc: bpf@vger.kernel.org
Subject: [LSF/MM/BPF TOPIC] Per-arg kfunc flags
Date: Wed, 25 Jan 2023 23:46:08 -0600	[thread overview]
Message-ID: <Y9IToH14bniD00R2@maniforge> (raw)

Hi all,

I would like to discuss how to enable per-arg kfunc flags.

As described in [0], kfunc flags are currently at the granularity of the
entire kfunc. This means that, for example, only a single kfunc argument
can be acquired (indicated by KF_ACQUIRE), released (indicated by
KF_RELEASE), RCU-protected (KF_RCU), etc.

This hasn't really been a problem up to this point, though there are
some per-arg annotations such as those described in [1], and patches
here and there such as [2], which collectively indicate that it may be
time to start aligning on what the design and implemention should look
like (e.g. should we model the UX for defining kfuncs in a similar to
way to helpers, go in a different direction, what blockers are there,
etc).

[0]: https://docs.kernel.org/bpf/kfuncs.html#annotating-kfuncs
[1]: https://docs.kernel.org/bpf/kfuncs.html#annotating-kfunc-parameters
[2]: https://lore.kernel.org/bpf/20221217082506.1570898-2-davemarchevsky@fb.com/

What do you all think?

Thanks,
David

                 reply	other threads:[~2023-01-26  5:46 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=Y9IToH14bniD00R2@maniforge \
    --to=void@manifault.com \
    --cc=bpf@vger.kernel.org \
    --cc=lsf-pc@lists.linux-foundation.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.