Device Driver Open

The atmle_open function is called to open the specified network device.

The LANE device driver does an asynchronous open. It starts the process of attaching the device to the network, sets the NDD_UP flag in the ndd_flags field, and returns 0. The network attachment continues in the background where it is driven by network activity and system timers.

Note: The Network Services ns_alloc routine that calls this open routine causes the open to be synchronous. It waits until the NDD_RUNNING or the NDD_LIMBO flag is set in the ndd_flags field or 15 seconds have passed.

If the connection is successful, the NDD_RUNNING flag is set in the ndd_flags field, and an NDD_CONNECTED status block is sent. The ns_alloc routine returns at this time.

If the device connection fails, the NDD_LIMBO flag is set in the ndd_flags field, and an NDD_LIMBO_ENTRY status block is sent.

If the device is eventually connected, the NDD_LIMBO flag is disabled, and the NDD_RUNNING flag is set in the ndd_flags field. Both NDD_CONNECTED and NDD_LIMBO_EXIT status blocks are sent.