[PATCH v2 04/13] libbpf: Support exclusive map creation

KP Singh kpsingh at kernel.org
Mon Aug 11 22:18:05 UTC 2025


On Tue, Jul 29, 2025 at 4:25 AM Alexei Starovoitov
<alexei.starovoitov at gmail.com> wrote:
>
> On Mon, Jul 21, 2025 at 2:20 PM KP Singh <kpsingh at kernel.org> wrote:
> >
> >
> > +/**
> > + * @brief **bpf_map__get_exclusive_program()** returns the exclusive program
> > + * that is registered with the map (if any).
> > + * @param map BPF map to which the exclusive program is registered.
> > + * @return the registered exclusive program.
> > + */
> > +LIBBPF_API struct bpf_program *bpf_map__get_exclusive_program(struct bpf_map *map);
>
> I couldn't find patches where it's used.
> Do we actually need it?

Andrii asked me to add the getter along with the setter in:

http://lore.kernel.org/bpf/CAEf4BzZghpnHaV+z2GYDNCApzLuxMW6_=4afgpO+D7AG-zTSFQ@mail.gmail.com/



More information about the Linux-security-module-archive mailing list