lkml.org 
[lkml]   [1999]   [Aug]   [7]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: New resources - pls, explain :-(


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/

\
 
 \ /
  Last update: 2005-03-22 13:53    [W:0.087 / U:0.608 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site