MCPcopy Create free account
hub / github.com/F-Stack/f-stack / rib_unsibscribe

Function rib_unsibscribe

freebsd/net/route/route_ctl.c:1492–1505  ·  view source on GitHub ↗

* Remove rtable subscription @rs from the routing table. * Needs to be run in network epoch. */

Source from the content-addressed store, hash-verified

1490 * Needs to be run in network epoch.
1491 */
1492void
1493rib_unsibscribe(struct rib_subscription *rs)
1494{
1495 struct rib_head *rnh = rs->rnh;
1496
1497 NET_EPOCH_ASSERT();
1498
1499 RIB_WLOCK(rnh);
1500 CK_STAILQ_REMOVE(&rnh->rnh_subscribers, rs, rib_subscription, next);
1501 RIB_WUNLOCK(rnh);
1502
1503 epoch_call(net_epoch_preempt, destroy_subscription_epoch,
1504 &rs->epoch_ctx);
1505}
1506
1507void
1508rib_unsibscribe_locked(struct rib_subscription *rs)

Callers

nothing calls this directly

Calls 1

epoch_callFunction · 0.50

Tested by

no test coverage detected