Lines Matching refs:item

50  * then a check is made to see if an item for this flow with the same
52 * and the bytes are incremented for that item. If the item does
53 * not exist a new item is added for the flow. If the flow is not present
308 * Add an object to the list at insert_point. This could be a flow item or
356 /* Delete an obj from the list. This could be a flow item or the flow itself */
401 * Checks if the given item (identified by dsfield, project id and uid)
408 flow_item_t *item;
413 item = (flow_item_t *)itemhdr->objp;
415 if ((item->dsfield != dsfield) || (item->projid != proj_id) ||
416 (item->uid != uid)) {
420 return (item);
428 * present in the table, add the item. Also, update the flow stats.
440 flow_item_t *item;
489 item = flowacct_item_present(flow, header->dsfield, header->projid,
491 if (item == NULL) {
530 item = (flow_item_t *)kmem_zalloc(FLOWACCT_ITEM_SZ, KM_NOSLEEP);
531 if (item == NULL) {
544 item->hdr = flowacct_add_obj(ihead, ihead->tail, (void *)item);
545 if (item->hdr == NULL) {
554 kmem_free(item, FLOWACCT_ITEM_SZ);
566 item->type = FLOWACCT_ITEM;
567 item->dsfield = header->dsfield;
568 item->projid = header->projid;
569 item->uid = header->uid;
570 item->npackets = 1;
571 item->nbytes = header->pktlen;
572 item->creation_time = item->hdr->last_seen;
574 item->npackets++;
575 item->nbytes += header->pktlen;
578 flow->hdr->last_seen = item->hdr->last_seen = now;
653 /* Delete the item from the flow in the flow table */
664 /* Create a flow record for this timed out item */
669 flow_item_t *item = (flow_item_t *)ithdr->objp;
701 tmp_frec->fl_use->fu_dsfield = item->dsfield;
702 tmp_frec->fl_use->fu_projid = item->projid;
703 tmp_frec->fl_use->fu_userid = item->uid;
704 tmp_frec->fl_use->fu_nbytes = item->nbytes;
705 tmp_frec->fl_use->fu_npackets = item->npackets;
709 (uint64_t)(ulong_t)item->creation_time.tv_sec;
733 flow_item_t *item;
771 * If type is FLOW_TIMER, then check if the item has timed out.
783 item = (flow_item_t *)ithdr->objp;
793 * go ahead and delete the item from
819 atomic_add_64(&flowacct_data->tbytes, (~item->nbytes +
822 /* Delete the item */
832 * a new item for this flow.
873 * this item and return.