From 83c4dfe9546fd839e7a52bca7e9920da918f916e Mon Sep 17 00:00:00 2001 From: jg Date: Mon, 25 Sep 2006 08:38:36 -0700 Subject: 6466789 decouple devices cache management implementation from consumers --HG-- rename : usr/src/uts/common/os/devctl.c => usr/src/uts/common/os/devcache.c rename : usr/src/uts/common/sys/devctl_impl.h => usr/src/uts/common/sys/devcache_impl.h --- usr/src/uts/common/sys/fs/sdev_impl.h | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) (limited to 'usr/src/uts/common/sys/fs/sdev_impl.h') diff --git a/usr/src/uts/common/sys/fs/sdev_impl.h b/usr/src/uts/common/sys/fs/sdev_impl.h index e8f124566d..5b0a8b8426 100644 --- a/usr/src/uts/common/sys/fs/sdev_impl.h +++ b/usr/src/uts/common/sys/fs/sdev_impl.h @@ -519,6 +519,22 @@ typedef struct sdev_nc_node { #define SLF_NO_NCACHE 0x01 /* node should not be added to ncache */ #define SLF_REBUILT 0x02 /* reconfig performed during lookup attempt */ +/* + * The nvlist name and nvpair identifiers in the + * /etc/devices/devname_cache nvlist format + */ +#define DP_DEVNAME_ID "devname" +#define DP_DEVNAME_NCACHE_ID "ncache" +#define DP_DEVNAME_NC_EXPIRECNT_ID "expire-counts" + +/* devname-cache list element */ +typedef struct nvp_devname { + char **nvp_paths; + int *nvp_expirecnts; + int nvp_npaths; + list_node_t nvp_link; +} nvp_devname_t; + /* * name service globals and prototypes */ -- cgit v1.2.3