On Tue, Jul 29, 2025 at 4:25 AM Alexei Starovoitov <alexei.starovoitov@xxxxxxxxx> wrote: > > On Mon, Jul 21, 2025 at 2:20 PM KP Singh <kpsingh@xxxxxxxxxx> 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@xxxxxxxxxxxxxx/