|
@@ -42,3 +42,18 @@ void plug ( struct interface *intf, struct interface *dest ) {
|
42
|
42
|
ref_get ( dest->refcnt );
|
43
|
43
|
intf->dest = dest;
|
44
|
44
|
}
|
|
45
|
+
|
|
46
|
+/**
|
|
47
|
+ * Plug two interfaces together
|
|
48
|
+ *
|
|
49
|
+ * @v a Interface A
|
|
50
|
+ * @v b Interface B
|
|
51
|
+ *
|
|
52
|
+ * Plugs interface A into interface B, and interface B into interface
|
|
53
|
+ * A. (The basic plug() function is unidirectional; this function is
|
|
54
|
+ * merely a shorthand for two calls to plug(), hence the name.)
|
|
55
|
+ */
|
|
56
|
+void plug_plug ( struct interface *a, struct interface *b ) {
|
|
57
|
+ plug ( a, b );
|
|
58
|
+ plug ( b, a );
|
|
59
|
+}
|