Home
last modified time | relevance | path

Searched refs:devstat (Results 1 – 25 of 47) sorted by relevance

12

/dragonfly/lib/libdevstat/
H A DMakefile3 LIB= devstat
5 SRCS= devstat.c
6 INCS= devstat.h
7 MAN= devstat.3
9 MLINKS+=devstat.3 getnumdevs.3
10 MLINKS+=devstat.3 getgeneration.3
11 MLINKS+=devstat.3 getversion.3
12 MLINKS+=devstat.3 checkversion.3
13 MLINKS+=devstat.3 getdevs.3
14 MLINKS+=devstat.3 selectdevs.3
[all …]
H A Ddevstat.h70 struct devstat *devices;
96 long current_generation, struct devstat *devices, int numdevs,
103 int compute_stats(struct devstat *current, struct devstat *previous,
110 int compute_stats_read(struct devstat *current, struct devstat *previous,
117 int compute_stats_write(struct devstat *current, struct devstat *previous,
H A Ddevstat.c266 dssize =(dinfo->numdevs * sizeof(struct devstat)) +sizeof(long); in getdevs()
269 dssize =(dinfo->numdevs * sizeof(struct devstat)) +sizeof(long); in getdevs()
297 dssize = (dinfo->numdevs * sizeof(struct devstat)) + in getdevs()
343 dssize = (dinfo->numdevs * sizeof(struct devstat)) + in getdevs()
351 dinfo->devices = (struct devstat *)(dinfo->mem_ptr + sizeof(long)); in getdevs()
420 long current_generation, struct devstat *devices, int numdevs, in selectdevs()
1022 compute_stats(struct devstat *current, struct devstat *previous, in compute_stats()
1113 compute_stats_read(struct devstat *current, struct devstat *previous, in compute_stats_read()
1198 compute_stats_write(struct devstat *current, struct devstat *previous, in compute_stats_write()
/dragonfly/sys/kern/
H A Dsubr_devstat.c45 static STAILQ_HEAD(devstatlist, devstat) device_statq;
52 devstat_add_entry(struct devstat *ds, const char *dev_name, in devstat_add_entry()
59 struct devstat *ds_tmp; in devstat_add_entry()
86 struct devstat *ds_next; in devstat_add_entry()
140 devstat_remove_entry(struct devstat *ds) in devstat_remove_entry()
153 STAILQ_REMOVE(devstat_head, ds, devstat, dev_links); in devstat_remove_entry()
160 devstat_start_transaction(struct devstat *ds) in devstat_start_transaction()
179 devstat_end_transaction(struct devstat *ds, u_int32_t bytes, in devstat_end_transaction()
234 devstat_end_transaction_buf(struct devstat *ds, struct buf *bp) in devstat_end_transaction_buf()
272 struct devstat *nds; in sysctl_devstat()
[all …]
/dragonfly/sys/sys/
H A Ddevicestat.h124 struct devstat { struct
125 STAILQ_ENTRY(devstat) dev_links;
211 void devstat_add_entry(struct devstat *ds, const char *dev_name, argument
216 void devstat_remove_entry(struct devstat *ds);
217 void devstat_start_transaction(struct devstat *ds);
218 void devstat_end_transaction(struct devstat *ds, u_int32_t bytes,
221 void devstat_end_transaction_buf(struct devstat *ds, struct buf *);
H A Dbuf.h418 struct devstat;
492 void nestiobuf_done(struct bio *mbio, int donebytes, int error, struct devstat *stats);
494 void nestiobuf_add(struct bio *mbio, struct buf *bp, int off, size_t size, struct devstat *stats);
H A Dccdvar.h218 struct devstat device_stats; /* device statistics */
/dragonfly/sbin/fsck/
H A Dfsutil.c214 struct stat devstat, mntdevstat; in getmntpt() local
220 if (stat(name, &devstat) != 0) in getmntpt()
222 if (S_ISCHR(devstat.st_mode) || S_ISBLK(devstat.st_mode)) in getmntpt()
241 mntdevstat.st_rdev == devstat.st_rdev) in getmntpt()
H A Dmain.c382 struct stat devstat, mntdevstat; in getmntpt() local
388 if (stat(name, &devstat) != 0 || in getmntpt()
389 !(S_ISCHR(devstat.st_mode) || S_ISBLK(devstat.st_mode))) in getmntpt()
402 mntdevstat.st_rdev == devstat.st_rdev) in getmntpt()
/dragonfly/sbin/badsect/
H A Dbadsect.c86 struct stat stbuf, devstat; in main() local
107 if (lstat(name, &devstat) < 0) in main()
109 if (stbuf.st_dev == devstat.st_rdev && in main()
110 (devstat.st_mode & IFMT) == IFCHR) in main()
/dragonfly/sys/bus/cam/
H A Dcam_periph.h133 struct devstat;
167 struct devstat *ds);
/dragonfly/share/man/man9/
H A DMakefile80 devstat.9 \
483 MLINKS+=devstat.9 devicestat.9 \
484 devstat.9 devstat_add_entry.9 \
485 devstat.9 devstat_end_transaction.9 \
486 devstat.9 devstat_end_transaction_buf.9 \
487 devstat.9 devstat_remove_entry.9 \
488 devstat.9 devstat_start_transaction.9
/dragonfly/sys/dev/raid/ips/
H A Dips_disk.h61 struct devstat stats;
/dragonfly/sys/dev/disk/nata/
H A Data-disk.h48 struct devstat stats; /* devstat entry */
H A Datapi-fd.h88 struct devstat stats;
H A Datapi-tape.h158 struct devstat stats; /* devstat entry */
H A Datapi-cd.h288 struct devstat stats; /* devstat entry */
H A Data-raid.h113 struct devstat devstat; /* device statistics */ member
/dragonfly/sys/dev/virtual/vkernel/cdrom/
H A Dvcd.c56 struct devstat stats;
/dragonfly/sys/dev/raid/ida/
H A Didavar.h173 struct devstat stats;
/dragonfly/sys/dev/raid/mlx/
H A Dmlxvar.h232 struct devstat mlxd_stats;
/dragonfly/sys/dev/raid/mfi/
H A Dmfivar.h133 struct devstat ld_devstat;
149 struct devstat pd_devstat;
/dragonfly/sys/dev/disk/dm/
H A Ddm.h149 struct devstat stats;
/dragonfly/sys/dev/raid/twe/
H A Dtwevar.h77 struct devstat twed_stats; /* accounting */
/dragonfly/sys/dev/raid/amr/
H A Damrvar.h294 struct devstat amrd_stats;

12