class TxQueue
Defined at line 26 of file ../../src/connectivity/network/drivers/network-device/device/tx_queue.h
Public Methods
zx::result<std::unique_ptr<TxQueue>> Create (DeviceInterface * parent)
Defined at line 98 of file ../../src/connectivity/network/drivers/network-device/device/tx_queue.cc
void ~TxQueue ()
Defined at line 27 of file ../../src/connectivity/network/drivers/network-device/device/tx_queue.cc
void JoinThread ()
Terminates and join the |TxQueue| worker thread.
Defined at line 33 of file ../../src/connectivity/network/drivers/network-device/device/tx_queue.cc
void AssertParentTxLocked (DeviceInterface & parent)
Helper functions with TA annotations that bridges the gap between parent's locks and local
locking requirements; TA is not otherwise able to tell that the |parent| and |parent_| are the
same entity.
Defined at line 41 of file ../../src/connectivity/network/drivers/network-device/device/tx_queue.h
void Resume ()
Notifies the worker thread that new tx buffers are available.
Defined at line 321 of file ../../src/connectivity/network/drivers/network-device/device/tx_queue.cc
SessionKey AddSession (Session * session)
Adds a session to the Tx queue. The session's tx fifo will be observed and
the session is notified when data is available to be fetched and sent to
the device through |Session::FetchTx|.
Defined at line 383 of file ../../src/connectivity/network/drivers/network-device/device/tx_queue.cc
void RemoveSession (SessionKey key)
Removes a session with previously assigned |key|. Panics if |key| is
invalid or points to a not installed session.
Defined at line 402 of file ../../src/connectivity/network/drivers/network-device/device/tx_queue.cc
void CompleteTxList (const fidl::VectorView<fuchsia_hardware_network_driver::wire::TxResult> & tx)
Marks all buffers in tx as complete, returning them to their respective sessions.
Defined at line 370 of file ../../src/connectivity/network/drivers/network-device/device/tx_queue.cc