====== Differences ====== This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
soc:2008:mdeck:notes:initialization [2008/05/28 16:57]
mdeck
soc:2008:mdeck:notes:initialization [2008/05/30 04:37] (current)
mdeck
Line 15: Line 15:
 ''​register_netdev()''​ adds to the device list.\\ ​ ''​register_netdev()''​ adds to the device list.\\ ​
 We return up the call stack to main(). We return up the call stack to main().
-===== Reaching ​open =====+===== Reaching ​close =====
   * src/​core/​main.c >> ''​main()''​   * src/​core/​main.c >> ''​main()''​
   * src/​usr/​autoboot.c >> ''​autoboot()''​ -- Boot network devices sequentially.   * src/​usr/​autoboot.c >> ''​autoboot()''​ -- Boot network devices sequentially.
 +  * src/​usr/​autoboot.c >> ''​close_all_netdevs()''​
 +  * src/​usr/​ifmgmt.c >> ''​ifclose()''​
 +  * src/​net/​netdevice.c >> ''​netdev_close()''​
 +  * ''​%%{struct net_device}->​op->​close()%%''​ == src/​drivers/​net/​NAME.c >> ''​NAME_close()''​ -- The network driver'​s ''​close()''​ routine is reached.
 +All network devices are closed before attempting to boot each network device.\\ ​
 +We return up the call stack to autoboot().
 +===== Reaching open =====
 +  * src/​usr/​autoboot.c >> ''​autoboot()''​ -- Still booting network devices sequentially.
   * src/​usr/​autoboot.c >> ''​netboot()''​ -- Boot this network device   * src/​usr/​autoboot.c >> ''​netboot()''​ -- Boot this network device
   * src/​usr/​ifmgmt.c >> ''​ifopen()''​   * src/​usr/​ifmgmt.c >> ''​ifopen()''​

QR Code
QR Code soc:2008:mdeck:notes:initialization (generated for current page)