Searched refs:privdata (Results 1 – 6 of 6) sorted by relevance
| /freebsd-12.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 | 181 etf_p privdata; in ng_etf_constructor() local 185 privdata = malloc(sizeof(*privdata), M_NETGRAPH_ETF, M_WAITOK | M_ZERO); in ng_etf_constructor() 187 LIST_INIT((privdata->hashtable + i)); in ng_etf_constructor() 191 NG_NODE_SET_PRIVATE(node, privdata); in ng_etf_constructor() 192 privdata->node = node; in ng_etf_constructor() 438 const etf_p privdata = NG_NODE_PRIVATE(node); in ng_etf_shutdown() local 441 NG_NODE_UNREF(privdata->node); in ng_etf_shutdown() 442 free(privdata, M_NETGRAPH_ETF); in ng_etf_shutdown()
|
| H A D | ng_patch.c | 183 priv_p privdata; in ng_patch_constructor() local 185 privdata = malloc(sizeof(*privdata), M_NETGRAPH, M_WAITOK | M_ZERO); in ng_patch_constructor() 186 privdata->dlt = DLT_RAW; in ng_patch_constructor() 188 NG_NODE_SET_PRIVATE(node, privdata); in ng_patch_constructor() 664 const priv_p privdata = NG_NODE_PRIVATE(node); in ng_patch_shutdown() local 669 if (privdata->conf != NULL) in ng_patch_shutdown() 670 free(privdata->conf, M_NETGRAPH); in ng_patch_shutdown() 672 free(privdata, M_NETGRAPH); in ng_patch_shutdown()
|
| H A D | ng_car.c | 76 struct privdata { struct 81 typedef struct privdata *priv_p; argument
|
| H A D | ng_source.c | 83 struct privdata { struct 97 typedef struct privdata *sc_p; argument
|