Searched refs:dev_select (Results 1 - 7 of 7) sorted by relevance

/freebsd-13-stable/usr.bin/systat/
H A Ddevs.c90 struct device_selection *dev_select; variable in typeref:struct:device_selection
141 dev_select = NULL;
148 if (devstat_selectdevs(&dev_select, &num_selected, &num_selections,
188 retval = devstat_selectdevs(&dev_select, &num_selected,
269 retval = devstat_selectdevs(&dev_select, &num_selected,
324 asprintf(&buffer, "%s%d", dev_select[i].device_name,
325 dev_select[i].unit_number);
352 retval = devstat_selectdevs(&dev_select, &num_selected,
384 if (dev_select[i].selected) {
386 sprintf(tmpstr, "%s%d", dev_select[
[all...]
H A Diostat.c193 if (dev_select[i].selected)
208 if (dev_select[i].selected) {
214 sprintf(tmpstr, "%s%d", dev_select[i].device_name,
215 dev_select[i].unit_number);
235 if (dev_select[i].selected) {
238 sprintf(tmpstr, "%s%d", dev_select[i].device_name,
239 dev_select[i].unit_number);
270 if (dev_select[i].selected) {
283 if (dev_select[i].selected) {
306 di = dev_select[d
[all...]
H A Dextern.h63 extern struct device_selection *dev_select;
/freebsd-13-stable/lib/libdevstat/
H A Ddevstat.c502 * - device selection list (dev_select)
552 devstat_selectdevs(struct device_selection **dev_select, int *num_selected, argument
567 if ((dev_select == NULL) || (devices == NULL) || (numdevs < 0))
571 * We always want to make sure that we have as many dev_select
577 if (*dev_select == NULL) {
578 *dev_select = (struct device_selection *)malloc(numdevs *
603 if (*dev_select == NULL) {
605 "%s: Cannot (re)allocate memory for dev_select argument",
644 bcopy(*dev_select, old_dev_select,
649 *dev_select
[all...]
H A Ddevstat.h161 int devstat_selectdevs(struct device_selection **dev_select, int *num_selected,
/freebsd-13-stable/usr.sbin/iostat/
H A Diostat.c141 static struct device_selection *dev_select; variable in typeref:struct:device_selection
368 dev_select = NULL;
380 if (devstat_selectdevs(&dev_select, &num_selected,
535 retval = devstat_selectdevs(&dev_select, &num_selected,
572 retval = devstat_selectdevs(&dev_select, &num_selected,
741 if ((dev_select[i].selected != 0)
742 && (dev_select[i].selected <= maxshowdevs)) {
743 di = dev_select[i].position;
763 if ((dev_select[i].selected != 0)
764 && (dev_select[
[all...]
/freebsd-13-stable/usr.bin/vmstat/
H A Dvmstat.c105 static struct device_selection *dev_select; variable in typeref:struct:device_selection
441 dev_select = NULL;
468 if (devstat_selectdevs(&dev_select, &num_selected, &num_selections,
761 retval = devstat_selectdevs(&dev_select, &num_selected,
908 if ((dev_select[i].selected) &&
909 (dev_select[i].selected <= maxshowdevs))
910 xo_emit("{T:/%c%c%d} ", dev_select[i].device_name[0],
911 dev_select[i].device_name[1],
912 dev_select[i].unit_number);
1151 if (dev_select[d
[all...]

Completed in 51 milliseconds