Print this page
NEX-15925 pseudonex, rootnex, and friends don't need to log useless device announcements
Reviewed by: Dan Fields <dan.fields@nexenta.com>
Reviewed by: Roman Strashkin <roman.strashkin@nexenta.com>
NEX-5164 backport illumos 6514 AS_* lock macros simplification
Reviewed by: Kevin Crowe <kevin.crowe@nexenta.com>
6514 AS_* lock macros simplification
Reviewed by: Piotr Jasiukajtis <estibi@me.com>
Reviewed by: Yuri Pankov <yuri.pankov@nexenta.com>
Reviewed by: Albert Lee <trisk@omniti.com>
Approved by: Dan McDonald <danmcd@omniti.com>
*** 4755,4780 ****
*/
void
ddi_report_dev(dev_info_t *d)
{
- char *b;
-
(void) ddi_ctlops(d, d, DDI_CTLOPS_REPORTDEV, (void *)0, (void *)0);
-
- /*
- * If this devinfo node has cb_ops, it's implicitly accessible from
- * userland, so we print its full name together with the instance
- * number 'abbreviation' that the driver may use internally.
- */
- if (DEVI(d)->devi_ops->devo_cb_ops != (struct cb_ops *)0 &&
- (b = kmem_zalloc(MAXPATHLEN, KM_NOSLEEP))) {
- cmn_err(CE_CONT, "?%s%d is %s\n",
- ddi_driver_name(d), ddi_get_instance(d),
- ddi_pathname(d, b));
- kmem_free(b, MAXPATHLEN);
- }
}
/*
* ddi_ctlops() is described in the assembler not to buy a new register
* window when it's called and can reduce cost in climbing the device tree
--- 4755,4765 ----