lkml.org 
[lkml]   [2003]   [May]   [15]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
SubjectRe: [PATCH][ATM] add reference counting to atm_dev
Date
From
In message <20030514.213014.91331736.davem@redhat.com>,"David S. Miller" writes
:
>I don't understand why a fixed number of ATM devs is
>required in order to keep all of the device list and locking
>stuff in one place.

some other places in the code want to iterate the list of atm devices:
one ioctl needs to count the list and then return the items, connect
can handle an open on 'any interface' so it needs to iterate the list.
there are a couple ways around this of course. the simplest (to me)
would be to simply limit the number of atm interfaces to 16 or so.
walking the atm adapters would just meaning calling atm_dev_lookup()
in a loop. other options would be an iterator mechnaism, or a function
to just return the current list of adapters (by adapter number of course
forcing you to do an atm_dev_lookup to get a reference). any other
ideas or preferences?
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/

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