diff options
author | cth <none@none> | 2006-09-13 15:20:10 -0700 |
---|---|---|
committer | cth <none@none> | 2006-09-13 15:20:10 -0700 |
commit | a08731ec17cb062d80f19791149c20e0f2f43b01 (patch) | |
tree | a6aa7f2aa9e10c88af917165d13f9716548b8bd8 /usr/src/lib/libdevinfo/libdevinfo.h | |
parent | e824d57f8160a27ac5e650005c7a4f037109c2be (diff) | |
download | illumos-joyent-a08731ec17cb062d80f19791149c20e0f2f43b01.tar.gz |
PSARC/2006/519 Metadevice Names in iostat/vmstat Output
4981132 iostat -Ecte header mal-formed
6402814 Solaris 10 vmstat performance degradation, due to excessive calls to libdevinfo
6464368 iostat and mpstat call kstat_open, but not kstat_close
6466406 kstat: default_kstat_snapshot() should only set lastupdate for incomplete transactions.
6467122 di_devlink_init leaks, missing free of db_dir in handle_free
Diffstat (limited to 'usr/src/lib/libdevinfo/libdevinfo.h')
-rw-r--r-- | usr/src/lib/libdevinfo/libdevinfo.h | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/usr/src/lib/libdevinfo/libdevinfo.h b/usr/src/lib/libdevinfo/libdevinfo.h index 0fac182582..56c4b4982c 100644 --- a/usr/src/lib/libdevinfo/libdevinfo.h +++ b/usr/src/lib/libdevinfo/libdevinfo.h @@ -431,6 +431,22 @@ extern int di_prof_add_exclude(di_prof_t, const char *); extern int di_prof_add_symlink(di_prof_t, const char *, const char *); extern int di_prof_add_map(di_prof_t, const char *, const char *); +/* + * Private interfaces for <driver><instance><minor> to path conversion. + * NOTE: These interfaces do not require or cause attach. The implementation + * uses the kernel instance-tree (/etc/path_to_inst) and the di_devlinks + * database information. + */ +typedef struct __di_dim *di_dim_t; + +extern di_dim_t di_dim_init(); +extern void di_dim_fini(di_dim_t); +extern char *di_dim_path_devices(di_dim_t, + char *drv_name, int instance, char *minor_name); +extern char *di_dim_path_dev(di_dim_t, + char *drv_name, int instance, char *minor_name); + + #ifdef __cplusplus } #endif |