summaryrefslogtreecommitdiffstats
path: root/platform-intel.h
diff options
context:
space:
mode:
authorNeilBrown <neilb@suse.de>2013-01-07 00:34:43 +0100
committerNeilBrown <neilb@suse.de>2013-01-07 00:34:43 +0100
commit9bc4ae77e40b5af3cd4be3e4d5aff18e6964e8fa (patch)
tree7e3deec8cb057c665e1b6ea0b9ce996cb18e8aa3 /platform-intel.h
parentconditionally remove map_dev from find_free_devnum (diff)
downloadmdadm-9bc4ae77e40b5af3cd4be3e4d5aff18e6964e8fa.tar.xz
mdadm-9bc4ae77e40b5af3cd4be3e4d5aff18e6964e8fa.zip
platform-intel - cache 'intel_devices' for a few seconds.
find_intel_devices() has take a little while to run as it scans some directory tree, and the result isn't likely to change often. So cache the value and only discard it after 10 seconds. Signed-off-by: NeilBrown <neilb@suse.de>
Diffstat (limited to 'platform-intel.h')
-rw-r--r--platform-intel.h1
1 files changed, 0 insertions, 1 deletions
diff --git a/platform-intel.h b/platform-intel.h
index 94f2e81b..de433bd6 100644
--- a/platform-intel.h
+++ b/platform-intel.h
@@ -202,7 +202,6 @@ static inline char *guid_str(char *buf, struct efi_guid guid)
char *diskfd_to_devpath(int fd);
struct sys_dev *find_driver_devices(const char *bus, const char *driver);
struct sys_dev *find_intel_devices(void);
-void free_sys_dev(struct sys_dev **list);
const struct imsm_orom *find_imsm_capability(enum sys_dev_type hba_id);
const struct imsm_orom *find_imsm_orom(void);
int disk_attached_to_hba(int fd, const char *hba_path);