summaryrefslogtreecommitdiff
path: root/usr/src/uts/common/sys/modctl.h
diff options
context:
space:
mode:
authorJerry Gilliam <Jerry.Gilliam@Sun.COM>2010-06-08 13:46:34 -0700
committerJerry Gilliam <Jerry.Gilliam@Sun.COM>2010-06-08 13:46:34 -0700
commitc8742f6496e41bcf40b54b09b48835c42f91e574 (patch)
tree30c6569140979ed1e980ac6c804767152de20246 /usr/src/uts/common/sys/modctl.h
parent837b568b3a2559f8c9b9403f95104271a85d129e (diff)
downloadillumos-joyent-c8742f6496e41bcf40b54b09b48835c42f91e574.tar.gz
6955559 ddi_driver_name() returns NULL to e_ddi_free_instance(), leading to a bad trap panic in in_drvwalk()
Diffstat (limited to 'usr/src/uts/common/sys/modctl.h')
-rw-r--r--usr/src/uts/common/sys/modctl.h6
1 files changed, 4 insertions, 2 deletions
diff --git a/usr/src/uts/common/sys/modctl.h b/usr/src/uts/common/sys/modctl.h
index 3ac19b948e..391768d5a5 100644
--- a/usr/src/uts/common/sys/modctl.h
+++ b/usr/src/uts/common/sys/modctl.h
@@ -19,8 +19,7 @@
* CDDL HEADER END
*/
/*
- * Copyright 2009 Sun Microsystems, Inc. All rights reserved.
- * Use is subject to license terms.
+ * Copyright (c) 1990, 2010, Oracle and/or its affiliates. All rights reserved.
*/
#ifndef _SYS_MODCTL_H
@@ -595,7 +594,10 @@ extern modctl_t *mod_load_requisite(modctl_t *, char *);
extern modctl_t *mod_find_by_filename(char *, char *);
extern uintptr_t modgetsymvalue(char *, int);
+extern int major_valid(major_t);
extern int driver_installed(major_t);
+extern int driver_active(major_t);
+
extern void mod_rele_dev_by_major(major_t);
extern struct dev_ops *mod_hold_dev_by_major(major_t);
extern struct dev_ops *mod_hold_dev_by_devi(dev_info_t *);