summaryrefslogtreecommitdiffstats
path: root/src/include/gpxe/hotplug.h
diff options
context:
space:
mode:
authorMichael Brown2007-06-27 15:48:31 +0200
committerMichael Brown2007-06-27 15:48:31 +0200
commitf77815f2b1ecf9f14441110ca61c0cffa48ce0e3 (patch)
treee55993b9b5acd1fbe2163b655ce3214390fdbbd3 /src/include/gpxe/hotplug.h
parentPartial migration of UDP to data-xfer interface. (Will not link at (diff)
downloadipxe-f77815f2b1ecf9f14441110ca61c0cffa48ce0e3.tar.gz
ipxe-f77815f2b1ecf9f14441110ca61c0cffa48ce0e3.tar.xz
ipxe-f77815f2b1ecf9f14441110ca61c0cffa48ce0e3.zip
Kill off hotplug.h and just make net devices normal reference-counted
structures. DHCP still broken and #if 0'd out.
Diffstat (limited to 'src/include/gpxe/hotplug.h')
-rw-r--r--src/include/gpxe/hotplug.h58
1 files changed, 0 insertions, 58 deletions
diff --git a/src/include/gpxe/hotplug.h b/src/include/gpxe/hotplug.h
deleted file mode 100644
index e6e132de1..000000000
--- a/src/include/gpxe/hotplug.h
+++ /dev/null
@@ -1,58 +0,0 @@
-#ifndef _GPXE_HOTPLUG_H
-#define _GPXE_HOTPLUG_H
-
-/** @file
- *
- * Hotplug support
- *
- */
-
-#include <gpxe/list.h>
-
-/**
- * A persistent reference to another data structure
- *
- * This data structure should be embedded within any data structure
- * (the referrer) which holds a persistent reference to a separate,
- * volatile data structure (the referee).
- */
-struct reference {
- /** List of persistent references */
- struct list_head list;
- /** Forget persistent reference
- *
- * @v ref Persistent reference
- *
- * This method is called immediately before the referred-to
- * data structure is destroyed. The reference holder must
- * forget all references to the referee before returning from
- * this method.
- *
- * This method must also call ref_del() to remove the
- * reference.
- */
- void ( * forget ) ( struct reference *ref );
-};
-
-/**
- * Add persistent reference
- *
- * @v ref Persistent reference
- * @v list List of persistent references
- */
-static inline void ref_add ( struct reference *ref, struct list_head *list ) {
- list_add ( &ref->list, list );
-}
-
-/**
- * Remove persistent reference
- *
- * @v ref Persistent reference
- */
-static inline void ref_del ( struct reference *ref ) {
- list_del ( &ref->list );
-}
-
-extern void forget_references ( struct list_head *list );
-
-#endif /* _GPXE_HOTPLUG_H */