Lines Matching defs:bf

162 	char *bf;
167 bf = malloc(LBFSZ, M_TEMP, M_WAITOK);
180 len = snprintf(bf, LBFSZ,
211 error = uiomove_frombuf(bf, len, uio);
213 free(bf, M_TEMP);
225 char *bf;
231 bf = malloc(LBFSZ, M_TEMP, M_WAITOK);
233 offset += snprintf(&bf[offset], LBFSZ - offset, "Character devices:\n");
243 offset += snprintf(&bf[offset], LBFSZ - offset,
251 offset += snprintf(&bf[offset], LBFSZ - offset, "\nBlock devices:\n");
262 offset += snprintf(&bf[offset], LBFSZ - offset,
271 error = uiomove_frombuf(bf, offset, uio);
273 free(bf, M_TEMP);
285 char *bf;
295 bf = malloc(LBFSZ, M_TEMP, M_WAITOK);
297 len = snprintf(bf, LBFSZ,
316 len += snprintf(&bf[len], LBFSZ - len,
333 len += snprintf(&bf[len], LBFSZ - len,
348 error = uiomove_frombuf(bf, len, uio);
350 free(bf, M_TEMP);
362 char *bf;
367 bf = malloc(LBFSZ, M_TEMP, M_WAITOK);
370 len = snprintf(bf, LBFSZ,
384 error = uiomove_frombuf(bf, len, uio);
386 free(bf, M_TEMP);
400 char *bf;
405 bf = malloc(LBFSZ, M_TEMP, M_WAITOK);
425 len = snprintf(bf, LBFSZ,
438 error = uiomove_frombuf(bf, len, uio);
440 free(bf, M_TEMP);
454 char *bf;
464 bf = malloc(LBFSZ, M_TEMP, M_WAITOK);
479 len = snprintf(bf, LBFSZ,
546 error = uiomove_frombuf(bf, len, uio);
548 free(bf, M_TEMP);
557 char *bf = NULL;
561 if (bf)
562 free(bf, M_TEMP);
563 bf = malloc(len, M_TEMP, M_WAITOK);
564 } while (procfs_getcpuinfstr(bf, &len) < 0);
571 error = uiomove_frombuf(bf, len, uio);
573 free(bf, M_TEMP);
581 char *bf;
587 bf = malloc(LBFSZ, M_TEMP, M_WAITOK);
591 len = snprintf(bf, LBFSZ,
599 error = uiomove_frombuf(bf, len, uio);
601 free(bf, M_TEMP);
637 char *bf, *mtab = NULL;
645 bf = malloc(LBFSZ, M_TEMP, M_WAITOK);
651 root |= procfs_format_sfs(&mtab, &mtabsz, bf, LBFSZ,
662 (void)procfs_format_sfs(&mtab, &mtabsz, bf, LBFSZ,
665 free(bf, M_TEMP);
683 char *bf;
696 bf = malloc(LBFSZ, M_TEMP, M_WAITOK);
754 len = snprintf(bf, LBFSZ,
767 error = uiomove_frombuf(bf, len, uio);
769 free(bf, M_TEMP);
778 char *bf;
782 bf = malloc(LBFSZ, M_TEMP, M_WAITOK);
784 offset += snprintf(bf, LBFSZ,
794 offset += snprintf(&bf[offset], LBFSZ - offset,
815 error = uiomove_frombuf(bf, offset, uio);
817 free(bf, M_TEMP);
825 char *bf;
829 bf = malloc(LBFSZ, M_TEMP, M_WAITOK);
831 offset += snprintf(bf, LBFSZ,
841 offset += snprintf(&bf[offset], LBFSZ - offset,
858 error = uiomove_frombuf(bf, offset, uio);
860 free(bf, M_TEMP);
868 char *bf;
872 bf = malloc(LBFSZ, M_TEMP, M_WAITOK);
874 offset += snprintf(bf, LBFSZ,
884 offset += snprintf(&bf[offset], LBFSZ - offset,
906 error = uiomove_frombuf(bf, offset, uio);
908 free(bf, M_TEMP);
918 char *bf;
922 bf = malloc(LBFSZ, M_TEMP, M_WAITOK);
923 offset += snprintf(bf, LBFSZ, "%u\n", value);
927 error = uiomove_frombuf(bf, offset, uio);
929 free(bf, M_TEMP);