diff options
Diffstat (limited to 'usr/src/uts/common/sys/ddi_implfuncs.h')
| -rw-r--r-- | usr/src/uts/common/sys/ddi_implfuncs.h | 11 |
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 |
