Lines Matching defs:data
94 void *data;
109 * The ds_snmp_lock mutex protects the following data global to the
453 sp->data = NULL;
480 * If the app has not exited cleanly, the data may not have been
483 if (sp->data) {
484 kmem_free(sp->data, sp->data_len);
580 * Block or bail if there is no SNMP data
583 DS_SNMP_DBG("ds_snmp_read: no SNMP data\n");
599 * returned failure and there is no data to read, or an ldc-reset
613 DS_SNMP_DBG("ds_snmp_read: data error, "
624 bcopy(sp->data, (void *)tmpbufp, len);
625 kmem_free(sp->data, sp->data_len);
626 sp->data = (caddr_t)NULL;
630 * SNMP data has been consumed, wake up anyone waiting to send
802 "waiting for data\n", sp->state, sp->sc_reset);
814 * agent returned failure and there is no data to read,
850 if (sp->data) {
851 DS_SNMP_DBG("ds_snmp_ioctl: data=%p, len=%lu\n",
852 sp->data, sp->data_len);
853 kmem_free(sp->data, sp->data_len);
855 sp->data = NULL;
972 * bogus data or an SNMP trap or the reader was interrupted.
976 DS_SNMP_DBG("Received SNMP data without request");
985 ASSERT(sp->data == NULL);
991 cmn_err(CE_WARN, "Received DS snmp data out of sequence with "
1002 sp->data = kmem_alloc(snmp_size, KM_SLEEP);
1007 sp->data, sp->data_len);
1013 * Wake up any readers waiting for data