Lines Matching refs:write_buf
623 clear_gap(kvm_t *kd, bool (*write_buf)(void *, const void *, size_t),
633 if (!(*write_buf)(cookie, buf, len)) {
644 * Write the dump header by calling write_buf with cookie as first argument.
647 kvm_dump_header(kvm_t *kd, bool (*write_buf)(void *, const void *, size_t),
663 if (!(*write_buf)(cookie, kd->kcore_hdr, sizeof(kcore_hdr_t))) {
669 if (clear_gap(kd, write_buf, cookie, gap) == -1)
677 if (!(*write_buf)(cookie, &seghdr, sizeof(seghdr))) {
683 if (clear_gap(kd, write_buf, cookie, gap) == -1)
686 if (!(*write_buf)(cookie, kd->cpu_data, kd->cpu_dsize)) {
692 if (clear_gap(kd, write_buf, cookie, gap) == -1)
700 if (!(*write_buf)(cookie, &seghdr, sizeof(seghdr))) {
706 if (clear_gap(kd, write_buf, cookie, gap) == -1)