[lkml]   [2000]   [Oct]   [16]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
Messages in this thread
Subject[Q] init_etherdev()
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 drivers don't check (dev == NULL) at all. So first question: is this check
and init_etherdev() call really required or this is old crap waiting for removal ?

2) if init_etherdev() is required, than call to unregister_netdevice() is
required too (in case of probe failure), isn't it ?

Best regards,

P.S. IMHO my English is especially bad today, so I'm sorry :)

To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to
Please read the FAQ at

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