* XXX this assumes that the rest of the * code won't hang on to it after it's * removed / unloaded */
| 116 | * removed / unloaded |
| 117 | */ |
| 118 | static if_pseudo_t |
| 119 | iflib_ip_lookup(const char *name) |
| 120 | { |
| 121 | if_pseudo_t ip = NULL; |
| 122 | |
| 123 | PSEUDO_LOCK(); |
| 124 | LIST_FOREACH(ip, &iflib_pseudos, ip_list) { |
| 125 | if (!strcmp(ip->ip_sctx->isc_name, name)) |
| 126 | break; |
| 127 | } |
| 128 | PSEUDO_UNLOCK(); |
| 129 | return (ip); |
| 130 | } |
| 131 | |
| 132 | static void |
| 133 | iflib_ip_delete(if_pseudo_t ip) |
no test coverage detected