hmebuf_t
static int hmeallocbuf(struct hme *, hmebuf_t *, int);
static mblk_t *hmeread(struct hme *, hmebuf_t *, uint32_t);
hmebuf_t *tbuf;
hmeallocbuf(struct hme *hmep, hmebuf_t *buf, int dir)
hmep->hme_tbuf = kmem_zalloc(HME_TMDMAX * sizeof (hmebuf_t), KM_SLEEP);
hmep->hme_rbuf = kmem_zalloc(HME_RMDMAX * sizeof (hmebuf_t), KM_SLEEP);
hmebuf_t *tbuf = &hmep->hme_tbuf[i];
hmebuf_t *rbuf = &hmep->hme_rbuf[i];
kmem_free(hmep->hme_rbuf, HME_RMDMAX * sizeof (hmebuf_t));
kmem_free(hmep->hme_tbuf, HME_TMDMAX * sizeof (hmebuf_t));
hmebuf_t *rbuf;
hmeread(struct hme *hmep, hmebuf_t *rbuf, uint32_t rflags)
hmebuf_t *hme_tbuf; /* hmebuf associated with TMD */
hmebuf_t *hme_rbuf; /* hmebuf associated with RMD */