summaryrefslogtreecommitdiffstats
path: root/src/include
diff options
context:
space:
mode:
authorMichael Brown2007-01-04 04:09:28 +0100
committerMichael Brown2007-01-04 04:09:28 +0100
commitbdf79ec8dc772d492dc75a4cb75525431230fadb (patch)
tree6060099ca12d566e6df93f4f15a2569111053e9b /src/include
parentMinimal hotplug support: provide a facility for notifying persistent (diff)
downloadipxe-bdf79ec8dc772d492dc75a4cb75525431230fadb.tar.gz
ipxe-bdf79ec8dc772d492dc75a4cb75525431230fadb.tar.xz
ipxe-bdf79ec8dc772d492dc75a4cb75525431230fadb.zip
Use hotplug support to notify persistent reference holders when a
net_device is unregistered.
Diffstat (limited to 'src/include')
-rw-r--r--src/include/gpxe/netdevice.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/include/gpxe/netdevice.h b/src/include/gpxe/netdevice.h
index b7ec83d96..7551be74d 100644
--- a/src/include/gpxe/netdevice.h
+++ b/src/include/gpxe/netdevice.h
@@ -10,6 +10,7 @@
#include <stdint.h>
#include <gpxe/list.h>
#include <gpxe/tables.h>
+#include <gpxe/hotplug.h>
struct pk_buff;
struct net_device;
@@ -137,6 +138,10 @@ struct ll_protocol {
struct net_device {
/** List of network devices */
struct list_head list;
+
+ /** List of persistent reference holders */
+ struct list_head references;
+
/** Transmit packet
*
* @v netdev Network device