| 1055 | } |
| 1056 | |
| 1057 | void * |
| 1058 | ff_veth_get_softc(void *host_ctx) |
| 1059 | { |
| 1060 | struct ff_veth_softc *sc = NULL; |
| 1061 | |
| 1062 | sc = malloc(sizeof(struct ff_veth_softc), M_DEVBUF, M_WAITOK); |
| 1063 | if (NULL == sc) { |
| 1064 | printf("ff_veth_softc allocation failed\n"); |
| 1065 | return NULL; |
| 1066 | } |
| 1067 | memset(sc, 0, sizeof(struct ff_veth_softc)); |
| 1068 | |
| 1069 | sc->host_ctx = host_ctx; |
| 1070 | |
| 1071 | return sc; |
| 1072 | } |
| 1073 | |
| 1074 | void |
| 1075 | ff_veth_free_softc(void *softc) |
no test coverage detected