MCPcopy Create free account
hub / github.com/apache/nuttx / tun_dev_uninit

Function tun_dev_uninit

drivers/net/tun.c:923–938  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

921 ****************************************************************************/
922
923static void tun_dev_uninit(FAR struct tun_device_s *priv)
924{
925 /* Put the interface in the down state */
926
927 tun_ifdown(&priv->dev);
928
929 work_cancel_sync(TUNWORK, &priv->work);
930
931 /* Remove the device from the OS */
932
933 netdev_unregister(&priv->dev);
934
935 nxmutex_destroy(&priv->lock);
936 nxsem_destroy(&priv->read_wait_sem);
937 nxsem_destroy(&priv->write_wait_sem);
938}
939
940/****************************************************************************
941 * Name: tun_close

Callers 1

tun_closeFunction · 0.85

Calls 5

tun_ifdownFunction · 0.85
work_cancel_syncFunction · 0.85
netdev_unregisterFunction · 0.85
nxmutex_destroyFunction · 0.85
nxsem_destroyFunction · 0.85

Tested by

no test coverage detected