- sb_bindex = subbuffer_id_get_index(config, bufb->buf_wsb[idx].id);
- pages = bufb->array[sb_bindex];
- overruns = v_read(config, &pages->records_unread);
- v_set(config, &pages->records_unread,
- v_read(config, &pages->records_commit));
- v_set(config, &pages->records_commit, 0);
+ sb_bindex = subbuffer_id_get_index(config, shmp_index(handle, bufb->buf_wsb, idx)->id);
+ pages = shmp_index(handle, bufb->array, sb_bindex);
+ overruns = v_read(config, &shmp(handle, pages->shmp)->records_unread);
+ v_set(config, &shmp(handle, pages->shmp)->records_unread,
+ v_read(config, &shmp(handle, pages->shmp)->records_commit));
+ v_set(config, &shmp(handle, pages->shmp)->records_commit, 0);