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

Function netdev_upper_ifdown

drivers/net/netdev_upperhalf.c:1259–1280  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1257}
1258
1259static int netdev_upper_ifdown(FAR struct net_driver_s *dev)
1260{
1261 FAR struct netdev_upperhalf_s *upper = dev->d_private;
1262
1263 switch (upper->lower->rxtype)
1264 {
1265 case NETDEV_RX_WORK:
1266 work_cancel_sync(upper->lower->priority, upper->work);
1267 break;
1268 case NETDEV_RX_THREAD:
1269 case NETDEV_RX_THREAD_RSS:
1270 netdev_upper_exit_thread(upper);
1271 break;
1272 }
1273
1274 if (upper->lower->ops->ifdown)
1275 {
1276 return upper->lower->ops->ifdown(upper->lower);
1277 }
1278
1279 return -ENOSYS;
1280}
1281
1282#ifdef CONFIG_NET_MCASTGROUP
1283static int netdev_upper_addmac(FAR struct net_driver_s *dev,

Callers

nothing calls this directly

Calls 2

work_cancel_syncFunction · 0.85
netdev_upper_exit_threadFunction · 0.85

Tested by

no test coverage detected