Searched refs:privdata (Results 1 – 6 of 6) sorted by relevance
| /freebsd-13.1/sys/netgraph/ |
| H A D | ng_tee.c | 74 struct privdata { struct 154 sc_p privdata; in ng_tee_constructor() local 156 privdata = malloc(sizeof(*privdata), M_NETGRAPH, M_WAITOK | M_ZERO); in ng_tee_constructor() 173 hinfo = &privdata->right; in ng_tee_newhook() 174 if (privdata->left.dest) in ng_tee_newhook() 175 privdata->left.dup = privdata->left.dest; in ng_tee_newhook() 179 hinfo = &privdata->left; in ng_tee_newhook() 181 privdata->right.dup = privdata->right.dest; in ng_tee_newhook() 192 if (privdata->left.dest) in ng_tee_newhook() 342 if (privdata->left.hook && privdata->right.hook) in ng_tee_close() [all …]
|
| H A D | ng_sample.c | 153 xxx_p privdata; in ng_xxx_constructor() local 157 privdata = malloc(sizeof(*privdata), M_NETGRAPH, M_WAITOK | M_ZERO); in ng_xxx_constructor() 159 privdata->channel[i].dlci = -2; in ng_xxx_constructor() 160 privdata->channel[i].channel = i; in ng_xxx_constructor() 164 NG_NODE_SET_PRIVATE(node, privdata); in ng_xxx_constructor() 165 privdata->node = node; in ng_xxx_constructor() 419 const xxx_p privdata = NG_NODE_PRIVATE(node); in ng_xxx_shutdown() local 424 free(privdata, M_NETGRAPH); in ng_xxx_shutdown() 433 NG_NODE_UNREF(privdata->node); in ng_xxx_shutdown() 434 free(privdata, M_NETGRAPH); in ng_xxx_shutdown()
|
| H A D | ng_etf.c | 179 etf_p privdata; in ng_etf_constructor() local 183 privdata = malloc(sizeof(*privdata), M_NETGRAPH_ETF, M_WAITOK | M_ZERO); in ng_etf_constructor() 185 LIST_INIT((privdata->hashtable + i)); in ng_etf_constructor() 189 NG_NODE_SET_PRIVATE(node, privdata); in ng_etf_constructor() 190 privdata->node = node; in ng_etf_constructor() 436 const etf_p privdata = NG_NODE_PRIVATE(node); in ng_etf_shutdown() local 439 NG_NODE_UNREF(privdata->node); in ng_etf_shutdown() 440 free(privdata, M_NETGRAPH_ETF); in ng_etf_shutdown()
|
| H A D | ng_patch.c | 182 priv_p privdata; in ng_patch_constructor() local 184 privdata = malloc(sizeof(*privdata), M_NETGRAPH, M_WAITOK | M_ZERO); in ng_patch_constructor() 185 privdata->dlt = DLT_RAW; in ng_patch_constructor() 187 NG_NODE_SET_PRIVATE(node, privdata); in ng_patch_constructor() 662 const priv_p privdata = NG_NODE_PRIVATE(node); in ng_patch_shutdown() local 667 if (privdata->conf != NULL) in ng_patch_shutdown() 668 free(privdata->conf, M_NETGRAPH); in ng_patch_shutdown() 670 free(privdata, M_NETGRAPH); in ng_patch_shutdown()
|
| H A D | ng_car.c | 79 struct privdata { struct 84 typedef struct privdata *priv_p; argument
|
| H A D | ng_source.c | 83 struct privdata { struct 97 typedef struct privdata *sc_p; argument
|