2
1
2
Sets the IFF_RUNNING flag to mark the device as running.
Clears the IFF_OACTIVE flag to indicate that there is no output outstanding.
8.2.16 Starting the Autosense Kernel Thread
The following code shows how the el_init_locked( ) routine starts the autosense kernel thread. Only network device drivers that implement an autosense kernel thread perform this task.
if
1
}
1
If in autosense mode, starts the autosense kernel thread.
8.2.17 Starting the Transmit of Pending Packets
The following code shows how the el_init_locked( ) routine starts transmitting pending packets. Because el_init_locked( ) may have been called as a result of an error or a reset operation, it needs to examine its transmit queue for any pending transmit requests. If there are any, it starts transmitting them.
if
return ESUCCESS;
}
2
1
2
If there are any pending packets, starts transmitting them by calling the el_start_locked( ) routine.
Returns ESUCCESS to the calling routine.
Implementing the Initialization Section