#include <gpxe/refcnt.h>
Go to the source code of this file.
Data Structures | |
| struct | interface |
| An object communication interface. More... | |
Functions | |
| FILE_LICENCE (GPL2_OR_LATER) | |
| static | __attribute__ ((always_inline)) struct interface *intf_get(struct interface *intf) |
| Increment reference count on an interface. | |
| void | plug (struct interface *intf, struct interface *dest) |
| Plug an interface into a new destination interface. | |
| void | plug_plug (struct interface *a, struct interface *b) |
| Plug two interfaces together. | |
Definition in file interface.h.
| FILE_LICENCE | ( | GPL2_OR_LATER | ) |
| static __attribute__ | ( | (always_inline) | ) | [inline, static] |
Increment reference count on an interface.
Decrement reference count on an interface.
| intf | Interface |
| intf | Interface |
| intf | Interface |
Definition at line 39 of file interface.h.
References ref_get().
00040 { 00041 ref_get ( intf->refcnt ); 00042 return intf; 00043 }
Plug an interface into a new destination interface.
| intf | Interface | |
| dest | New destination interface |
Note that there is no "unplug" call; instead you must plug the interface into a null interface.
Definition at line 42 of file interface.c.
References DBGC, and interface::dest.
Referenced by job_plug(), job_unplug(), plug_plug(), resolv_plug(), and resolv_unplug().
00042 { 00043 DBGC ( intf, "INTF %p moving from INTF %p to INTF %p\n", 00044 intf, intf->dest, dest ); 00045 intf_put ( intf->dest ); 00046 intf->dest = intf_get ( dest ); 00047 }
Plug two interfaces together.
| a | Interface A | |
| b | Interface B |
Definition at line 59 of file interface.c.
References plug().
Referenced by job_plug_plug(), and resolv_plug_plug().
1.5.7.1