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/
This archive was generated by hypermail 2b29 : Thu May 15 2003 - 22:00:57 EST