Re: [Q] init_etherdev()

2000-10-16 Thread Petko Manolov
Hi all, If we are talking about 2.4 there are two options: - call init_etherdev() with arguments == 0; - call it with non zero arguments; Successful return from init_etherdev(0,0) means that ethernet device is already registered and "eth?" is asigned to the driver alloca

Re: [Q] init_etherdev()

2000-10-16 Thread Andrey Panin
On Mon, Oct 16, 2000 at 02:34:44AM -0400, Jeff Garzik wrote: > Andrey Panin wrote: > > > > Hi all, > > > > after walking through some of NIC drivers and trying to remove check_region() > > calls, i have two small questions: > > > > 1) many NIC drivers contain (in XXX_probe1 functions) check lik

Re: [Q] init_etherdev()

2000-10-15 Thread Jeff Garzik
Andrey Panin wrote: > > Hi all, > > after walking through some of NIC drivers and trying to remove check_region() > calls, i have two small questions: > > 1) many NIC drivers contain (in XXX_probe1 functions) check like this: > > if (dev == NULL) { > dev = init_etherdev

[Q] init_etherdev()

2000-10-15 Thread Andrey Panin
Hi all, after walking through some of NIC drivers and trying to remove check_region() calls, i have two small questions: 1) many NIC drivers contain (in XXX_probe1 functions) check like this: if (dev == NULL) { dev = init_etherdev(); } but many driver