Lines Matching defs:pitem
3057 ng_realloc_item(item_p pitem, int type, int flags)
3062 KASSERT((pitem != NULL), ("%s: can't reallocate NULL", __func__));
3066 from = ((pitem->el_flags & NGQF_TYPE) == NGQF_DATA);
3071 ng_free_item(pitem);
3074 *item = *pitem;
3075 ng_free_item(pitem);
3077 item = pitem;
3748 * If an optional pitem parameter is supplied, its apply
3750 * flag is set, no new item will be allocated, but pitem will
3754 ng_send_fn2(node_p node, hook_p hook, item_p pitem, ng_item_fn2 *fn, void *arg1,
3759 KASSERT((pitem != NULL || (flags & NG_REUSE_ITEM) == 0),
3760 ("%s: NG_REUSE_ITEM but no pitem", __func__));
3766 if (pitem == NULL || (flags & NG_REUSE_ITEM) == 0) {
3769 if (pitem != NULL)
3770 item->apply = pitem->apply;
3772 if ((item = ng_realloc_item(pitem, NGQF_FN2, flags)) == NULL)