Re: [PATCH v2 2/7] resource: Rename find_resource() to find_empty_resource_slot()

From: Ilpo Järvinen
Date: Mon May 06 2024 - 08:30:31 EST


On Fri, 3 May 2024, Bjorn Helgaas wrote:

> On Thu, Dec 28, 2023 at 06:57:02PM +0200, Ilpo Järvinen wrote:
> > Rename find_resource() to find_empty_resource_slot() to better describe
> > what the functions does. This is a preparation for exposing it beyond
> > resource.c which is needed by PCI core. Also rename the __ variant to
> > match the names.
>
> I wonder if "find_resource_space()" or "find_available_resource()"
> would be better than "_slot"?
>
> "Slot" *is* already used a few times in kernel/resource.c, but in most
> cases I think it refers to a "resource", and find_resource() basically
> returns a filled-in struct resource.
>
> And of course "slot" suggests something entirely different in the PCI
> context.

I picked up it from the existing usage but I've no strong opinion on
this so I'll just rework the series to not add more "slot" wording into
there.

--
i.