Re: New resources - pls, explain :-(

Linus Torvalds (torvalds@transmeta.com)
Fri, 6 Aug 1999 13:12:40 -0700 (PDT)


On Fri, 6 Aug 1999, Petr Vandrovec Ing. VTEI wrote:
> maybe there is a little misunderstaniding. I thought that acquire_pci_dev
> should do (sorry for exact names of locking functions):

Whatever it does, it cannot work correctly.

Either it tries to allocate too much (everything), or not enough. The
basic problem is that it really isn't how a driver works.

It can cerainly be thought of as a _helper_ function for one specific
common case, but it cannot and should not be thought upon as the
fundamental form of resource allocation. If a driver wants to just
allocate the ports by hand, that makes in my opinion as much if not more
sense than to call a "acquire_pci_dev" thing.

Linus

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.rutgers.edu
Please read the FAQ at http://www.tux.org/lkml/