summaryrefslogtreecommitdiff
path: root/usr/src/uts/common/sys/ddi_implfuncs.h
diff options
context:
space:
mode:
authorJoshua M. Clulow <jmc@joyent.com>2020-04-02 00:16:22 -0700
committerJoshua M. Clulow <josh@sysmgr.org>2020-04-02 00:16:56 -0700
commit30c304d9746f4a048a7de56d31333b0fa8e43dee (patch)
treeca4f81799f06cebd4c6e06629c886b70d695a8c9 /usr/src/uts/common/sys/ddi_implfuncs.h
parent476d5ff73c235a63ab06a9852e510910a3ce1793 (diff)
downloadillumos-joyent-30c304d9746f4a048a7de56d31333b0fa8e43dee.tar.gz
7119 boot should handle change in physical path to ZFS root devices
Reviewed by: Toomas Soome <tsoome@me.com> Approved by: Dan McDonald <danmcd@joyent.com>
Diffstat (limited to 'usr/src/uts/common/sys/ddi_implfuncs.h')
-rw-r--r--usr/src/uts/common/sys/ddi_implfuncs.h11
1 files changed, 11 insertions, 0 deletions
diff --git a/usr/src/uts/common/sys/ddi_implfuncs.h b/usr/src/uts/common/sys/ddi_implfuncs.h
index e7d218844b..522366aa23 100644
--- a/usr/src/uts/common/sys/ddi_implfuncs.h
+++ b/usr/src/uts/common/sys/ddi_implfuncs.h
@@ -25,6 +25,7 @@
*/
/*
* Copyright 2012 Garrett D'Amore <garrett@damore.org>. All rights reserved.
+ * Copyright 2020 Joshua M. Clulow <josh@sysmgr.org>
*/
#ifndef _SYS_DDI_IMPLFUNCS_H
@@ -237,6 +238,16 @@ extern void i_ddi_decr_locked_memory(proc_t *, rctl_qty_t);
*/
extern void translate_devid(dev_info_t *dip);
+/*
+ * Support routine for file systems that need to scan block devices searching
+ * for a label as part of mounting the root file system.
+ */
+extern void preroot_walk_block_devices(int (*)(const char *, void *), void *);
+
+#define PREROOT_WALK_BLOCK_DEVICES_NEXT 1
+#define PREROOT_WALK_BLOCK_DEVICES_CANCEL 2
+
+
#endif /* _KERNEL */
#ifdef __cplusplus