/freebsd-11-stable/lib/libdevstat/ |
H A D | Makefile | 4 LIB= devstat 6 # Bump DEVSTAT_USER_API_VER in devstat.h every time this is incremented. 8 SRCS= devstat.c 9 INCS= devstat.h 13 MAN= devstat.3 15 MLINKS+=devstat.3 devstat_getnumdevs.3 16 MLINKS+=devstat.3 devstat_getgeneration.3 17 MLINKS+=devstat.3 devstat_getversion.3 18 MLINKS+=devstat.3 devstat_checkversion.3 19 MLINKS+=devstat [all...] |
H A D | devstat.h | 49 #define DEVSTAT_ERRBUF_SIZE 2048 /* size of the devstat library error string */ 131 struct devstat *devices; 161 long current_generation, struct devstat *devices, 168 int devstat_compute_statistics(struct devstat *current, 169 struct devstat *previous,
|
H A D | devstat.c | 49 #include "devstat.h" 52 compute_stats(struct devstat *current, struct devstat *previous, 181 if (sysctlbyname("kern.devstat.numdevs", &numdevs, 201 * supplied in a more atmoic manner by the kern.devstat.all sysctl. 218 if (sysctlbyname("kern.devstat.generation", &generation, 221 "%s: error getting devstat generation\n%s: %s", 235 * Get the current devstat version. The return value of this function 249 * Get the current devstat version. 252 if (sysctlbyname("kern.devstat [all...] |
/freebsd-11-stable/usr.bin/nfsstat/ |
H A D | Makefile | 7 LIBADD+= devstat
|
/freebsd-11-stable/usr.sbin/gstat/ |
H A D | Makefile | 5 LIBADD= devstat geom edit ncursesw
|
H A D | gstat.c | 41 #include <devstat.h> 80 struct devstat *gsp, *gsq;
|
/freebsd-11-stable/usr.sbin/iostat/ |
H A D | Makefile | 7 LIBADD= devstat kvm m
|
/freebsd-11-stable/libexec/rpc.rstatd/ |
H A D | Makefile | 7 LIBADD= rpcsvc devstat
|
/freebsd-11-stable/usr.bin/vmstat/ |
H A D | Makefile | 6 LIBADD= devstat kvm memstat xo util
|
/freebsd-11-stable/usr.bin/systat/ |
H A D | devs.h | 35 #include <devstat.h>
|
H A D | Makefile | 19 LIBADD= ncursesw m devstat kvm util
|
/freebsd-11-stable/sys/sys/ |
H A D | devicestat.h | 45 #define DEVSTAT_DEVICE_NAME "devstat" 48 * ATTENTION: The devstat version below should be incremented any time a 49 * change is made in struct devstat, or any time a change is made in the 50 * enumerated types that struct devstat uses. (Only if those changes 137 struct devstat { struct 147 STAILQ_ENTRY(devstat) dev_links; 183 STAILQ_HEAD(devstatlist, devstat); 188 struct devstat *devstat_new_entry(const void *dev_name, int unit_number, 194 void devstat_remove_entry(struct devstat *ds); 195 void devstat_start_transaction(struct devstat *d [all...] |
H A D | bio.h | 130 struct devstat; 142 void biofinish(struct bio *bp, struct devstat *stat, int error); 148 void bioq_flush(struct bio_queue_head *head, struct devstat *stp, int error);
|
/freebsd-11-stable/sys/kern/ |
H A D | subr_devstat.c | 50 SDT_PROBE_DEFINE2(io, , , start, "struct bio *", "struct devstat *"); 51 SDT_PROBE_DEFINE2(io, , , done, "struct bio *", "struct devstat *"); 53 "struct devstat *"); 55 "struct devstat *"); 69 MTX_SYSINIT(devstat_mutex, &devstat_mutex, "devstat", MTX_DEF); 72 static struct devstat *devstat_alloc(void); 73 static void devstat_free(struct devstat *); 74 static void devstat_add_entry(struct devstat *ds, const void *dev_name, 81 * Allocate a devstat and initialize it 83 struct devstat * [all...] |
H A D | subr_disk.c | 169 bioq_flush(struct bio_queue_head *head, struct devstat *stp, int error)
|
/freebsd-11-stable/sbin/fsck/ |
H A D | fsutil.c | 158 struct stat devstat, mntdevstat; local 164 if (stat(name, &devstat) != 0) 166 if (S_ISCHR(devstat.st_mode) || S_ISBLK(devstat.st_mode)) 185 mntdevstat.st_rdev == devstat.st_rdev)
|
/freebsd-11-stable/sbin/badsect/ |
H A D | badsect.c | 92 struct stat stbuf, devstat; local 108 if (lstat(name, &devstat) < 0) 110 if (stbuf.st_dev == devstat.st_rdev && 111 (devstat.st_mode & IFMT) == IFCHR)
|
/freebsd-11-stable/lib/libgeom/ |
H A D | geom_stats.c | 90 spp = pagesize / sizeof(struct devstat); 167 struct devstat * 170 struct devstat *gsp; 174 gsp = (struct devstat *)
|
H A D | libgeom.h | 54 struct devstat *geom_stats_snapshot_next(void *);
|
/freebsd-11-stable/sys/geom/ |
H A D | geom_disk.h | 66 struct devstat; 77 struct devstat *d_devstat;
|
/freebsd-11-stable/sys/cam/ |
H A D | cam_iosched.h | 51 void cam_iosched_flush(struct cam_iosched_softc *isc, struct devstat *stp, int err);
|
H A D | cam_periph.h | 42 struct devstat; 183 struct devstat *ds);
|
/freebsd-11-stable/sys/dev/nxge/xgehal/ |
H A D | xgehal-mgmtaux.c | 893 xge_hal_mgmt_device_stats_t devstat; local 897 status = xge_hal_mgmt_device_stats(hldev, &devstat, 905 devstat.rx_traffic_intr_cnt, "%u"); 907 __HAL_AUX_ENTRY("tx_traffic_intr_cnt", devstat.tx_traffic_intr_cnt, "%u"); 908 __HAL_AUX_ENTRY("txpic_intr_cnt", devstat.txpic_intr_cnt, "%u"); 909 __HAL_AUX_ENTRY("txdma_intr_cnt", devstat.txdma_intr_cnt, "%u"); 910 __HAL_AUX_ENTRY("txmac_intr_cnt", devstat.txmac_intr_cnt, "%u"); 911 __HAL_AUX_ENTRY("txxgxs_intr_cnt", devstat.txxgxs_intr_cnt, "%u"); 912 __HAL_AUX_ENTRY("rxpic_intr_cnt", devstat.rxpic_intr_cnt, "%u"); 913 __HAL_AUX_ENTRY("rxdma_intr_cnt", devstat [all...] |
/freebsd-11-stable/sbin/fsck_ffs/ |
H A D | main.c | 642 struct stat devstat, mntdevstat; local 648 if (stat(name, &devstat) != 0) 650 if (S_ISCHR(devstat.st_mode) || S_ISBLK(devstat.st_mode)) 672 mntdevstat.st_rdev == devstat.st_rdev)
|
/freebsd-11-stable/sbin/growfs/ |
H A D | growfs.c | 1249 struct stat devstat; local 1251 if (stat(name, &devstat) != 0) 1253 if (!S_ISCHR(devstat.st_mode)) 1264 struct stat devstat, mntdevstat; local 1273 if (stat(dev, &devstat) != 0) 1275 if (!S_ISCHR(devstat.st_mode) && !S_ISBLK(devstat.st_mode)) 1288 mntdevstat.st_rdev == devstat.st_rdev)
|