Lines Matching defs:pitem
3047 ng_realloc_item(item_p pitem, int type, int flags)
3052 KASSERT((pitem != NULL), ("%s: can't reallocate NULL", __func__));
3056 from = ((pitem->el_flags & NGQF_TYPE) == NGQF_DATA);
3061 ng_free_item(pitem);
3064 *item = *pitem;
3065 ng_free_item(pitem);
3067 item = pitem;
3722 * If an optional pitem parameter is supplied, its apply
3724 * flag is set, no new item will be allocated, but pitem will
3728 ng_send_fn2(node_p node, hook_p hook, item_p pitem, ng_item_fn2 *fn, void *arg1,
3733 KASSERT((pitem != NULL || (flags & NG_REUSE_ITEM) == 0),
3734 ("%s: NG_REUSE_ITEM but no pitem", __func__));
3740 if (pitem == NULL || (flags & NG_REUSE_ITEM) == 0) {
3743 if (pitem != NULL)
3744 item->apply = pitem->apply;
3746 if ((item = ng_realloc_item(pitem, NGQF_FN2, flags)) == NULL)