aboutsummaryrefslogtreecommitdiff
path: root/lib/netdev-provider.h
diff options
context:
space:
mode:
authorEthan Jackson <ethan@nicira.com>2011-05-26 14:48:50 -0700
committerEthan Jackson <ethan@nicira.com>2011-05-31 14:34:39 -0700
commit943e5afe0b450fc665a4a162fe1bacafd34d18e8 (patch)
treef5d15f0432281f1c472be23f665ab39013798f2c /lib/netdev-provider.h
parent1ea241383e608ee173671c233a819648d773cb25 (diff)
netdev: Remove monitors and notifiers.
Neither of these constructs are used anymore.
Diffstat (limited to 'lib/netdev-provider.h')
-rw-r--r--lib/netdev-provider.h25
1 files changed, 0 insertions, 25 deletions
diff --git a/lib/netdev-provider.h b/lib/netdev-provider.h
index 8ed3bf37..67690143 100644
--- a/lib/netdev-provider.h
+++ b/lib/netdev-provider.h
@@ -81,19 +81,6 @@ static inline void netdev_assert_class(const struct netdev *netdev,
netdev_dev_assert_class(netdev_get_dev(netdev), netdev_class);
}
-/* A network device notifier.
- *
- * Network device implementations should use netdev_notifier_init() to
- * initialize this structure, but they may freely read its members after
- * initialization. */
-struct netdev_notifier {
- struct netdev *netdev;
- void (*cb)(struct netdev_notifier *);
- void *aux;
-};
-void netdev_notifier_init(struct netdev_notifier *, struct netdev *,
- void (*cb)(struct netdev_notifier *), void *aux);
-
/* Network device class structure, to be defined by each implementation of a
* network device.
*
@@ -564,18 +551,6 @@ struct netdev_class {
int (*update_flags)(struct netdev *netdev, enum netdev_flags off,
enum netdev_flags on, enum netdev_flags *old_flags);
- /* Arranges for 'cb' to be called whenever one of the attributes of
- * 'netdev' changes and sets '*notifierp' to a newly created
- * netdev_notifier that represents this arrangement. The created notifier
- * will have its 'netdev', 'cb', and 'aux' members set to the values of the
- * corresponding parameters. */
- int (*poll_add)(struct netdev *netdev,
- void (*cb)(struct netdev_notifier *notifier), void *aux,
- struct netdev_notifier **notifierp);
-
- /* Cancels poll notification for 'notifier'. */
- void (*poll_remove)(struct netdev_notifier *notifier);
-
/* Returns a sequence number which indicates changes in one of 'netdev''s
* properties. The returned sequence number must be nonzero so that
* callers have a value which they may use as a reset when tracking