/freebsd-10.0-release/lib/libdevstat/ |
H A D | Makefile | 3 LIB= devstat 5 # Bump DEVSTAT_USER_API_VER in devstat.h every time this is incremented. 7 SRCS= devstat.c 8 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, 179 if (sysctlbyname("kern.devstat.numdevs", &numdevs, 199 * supplied in a more atmoic manner by the kern.devstat.all sysctl. 216 if (sysctlbyname("kern.devstat.generation", &generation, 219 "%s: error getting devstat generation\n%s: %s", 233 * Get the current devstat version. The return value of this function 247 * Get the current devstat version. 250 if (sysctlbyname("kern.devstat [all...] |
/freebsd-10.0-release/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 | dtrace_bsd.h | 41 struct devstat; 173 /* IO Provider hooks, really hook into devstat */ 175 struct devstat *); 179 struct devstat *); 183 struct devstat *); 187 struct devstat *);
|
H A D | bio.h | 126 struct devstat; 138 void biofinish(struct bio *bp, struct devstat *stat, int error); 144 void bioq_flush(struct bio_queue_head *head, struct devstat *stp, int error);
|
/freebsd-10.0-release/sys/kern/ |
H A D | subr_devstat.c | 106 MTX_SYSINIT(devstat_mutex, &devstat_mutex, "devstat", MTX_DEF); 109 static struct devstat *devstat_alloc(void); 110 static void devstat_free(struct devstat *); 111 static void devstat_add_entry(struct devstat *ds, const void *dev_name, 118 * Allocate a devstat and initialize it 120 struct devstat * 127 struct devstat *ds; 146 * Take a malloced and zeroed devstat structure given to us, fill it in 150 devstat_add_entry(struct devstat *ds, const void *dev_name, 157 struct devstat *ds_tm [all...] |
H A D | subr_disk.c | 169 bioq_flush(struct bio_queue_head *head, struct devstat *stp, int error)
|
/freebsd-10.0-release/lib/libgeom/ |
H A D | geom_stats.c | 92 spp = pagesize / sizeof(struct devstat); 169 struct devstat * 172 struct devstat *gsp; 176 gsp = (struct devstat *)
|
H A D | libgeom.h | 54 struct devstat *geom_stats_snapshot_next(void *);
|
/freebsd-10.0-release/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-10.0-release/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-10.0-release/sys/geom/sched/ |
H A D | g_sched.h | 129 void gs_bioq_flush(struct bio_queue_head *, struct devstat *, int);
|
H A D | subr_disk.c | 128 gs_bioq_flush(struct bio_queue_head *head, struct devstat *stp, int error)
|
/freebsd-10.0-release/sys/geom/ |
H A D | geom_disk.h | 61 struct devstat; 66 struct devstat *d_devstat;
|
H A D | geom.h | 180 struct devstat *stat; 203 struct devstat *stat;
|
/freebsd-10.0-release/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-10.0-release/cddl/lib/libdtrace/ |
H A D | io.d | 42 translator devinfo_t < struct devstat *D > {
|
/freebsd-10.0-release/sbin/fsck_ffs/ |
H A D | main.c | 615 struct stat devstat, mntdevstat; local 621 if (stat(name, &devstat) != 0) 623 if (S_ISCHR(devstat.st_mode) || S_ISBLK(devstat.st_mode)) 642 mntdevstat.st_rdev == devstat.st_rdev)
|
/freebsd-10.0-release/sys/cam/ |
H A D | cam_periph.h | 41 struct devstat; 168 struct devstat *ds);
|
/freebsd-10.0-release/sbin/growfs/ |
H A D | growfs.c | 1250 struct stat devstat; local 1252 if (stat(name, &devstat) != 0) 1254 if (!S_ISCHR(devstat.st_mode)) 1265 struct stat devstat, mntdevstat; local 1274 if (stat(dev, &devstat) != 0) 1276 if (!S_ISCHR(devstat.st_mode) && !S_ISBLK(devstat.st_mode)) 1289 mntdevstat.st_rdev == devstat.st_rdev)
|
/freebsd-10.0-release/usr.sbin/gstat/ |
H A D | gstat.c | 39 #include <devstat.h> 78 struct devstat *gsp, *gsq;
|
/freebsd-10.0-release/sbin/mdconfig/ |
H A D | mdconfig.c | 43 #include <devstat.h> 409 struct devstat *gsp;
|
/freebsd-10.0-release/sys/dev/md/ |
H A D | md.c | 205 struct devstat *devstat; member in struct:md_s 419 devstat_start_transaction_bio(sc->devstat, bp); 951 devstat_end_transaction_bio(sc->devstat, bp); 1029 sc->devstat = devstat_new_entry("md", sc->unit, sc->sectorsize, 1199 if (sc->devstat) { 1200 devstat_remove_entry(sc->devstat); 1201 sc->devstat = NULL;
|
/freebsd-10.0-release/usr.bin/systat/ |
H A D | devs.c | 70 #include <devstat.h> 107 * Make sure that the userland devstat version matches the kernel 108 * devstat version. If not, exit and print a message informing
|