diff --git a/lib/libspl/include/sys/sunddi.h b/lib/libspl/include/sys/sunddi.h index df5f5b187e..6f3a191242 100644 --- a/lib/libspl/include/sys/sunddi.h +++ b/lib/libspl/include/sys/sunddi.h @@ -61,12 +61,18 @@ #define DDI_PROP_DONTPASS 0x0001 /* Don't pass request to parent */ #define DDI_PROP_CANSLEEP 0x0002 /* Memory allocation may sleep */ +typedef struct dev_info { + major_t di_major; + minor_t di_minor; + dev_t di_dev; +} dev_info_t; extern int ddi_strtoul(const char *, char **, int, unsigned long *); extern int ddi_strtol(const char *, char **, int, long *); extern int ddi_strtoull(const char *, char **, int, unsigned long long *); extern int ddi_strtoll(const char *, char **, int, long long *); +extern dev_info_t *ddi_root_node(void); extern int ddi_prop_lookup_string(dev_t, dev_info_t *, uint_t, char *, char **); extern void ddi_prop_free(void *); diff --git a/lib/libspl/sunddi.c b/lib/libspl/sunddi.c index cce3e2bff8..cd98d4e1d5 100644 --- a/lib/libspl/sunddi.c +++ b/lib/libspl/sunddi.c @@ -84,6 +84,13 @@ ddi_strtoll(const char *str, char **endptr, int base, return errno; } +/* FIXME: Unimplemented */ +dev_info_t * +ddi_root_node(void) +{ + return NULL; +} + /* FIXME: Unimplemented */ int ddi_prop_lookup_string(dev_t match_dev, dev_info_t *dip, uint_t flags,