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>

Split Close
Expand all
Collapse all
          --- old/usr/src/uts/common/os/sunddi.c
          +++ new/usr/src/uts/common/os/sunddi.c
↓ open down ↓ 4749 lines elided ↑ open up ↑
4750 4750   * Miscellaneous functions:
4751 4751   */
4752 4752  
4753 4753  /*
4754 4754   * Implementation specific hooks
4755 4755   */
4756 4756  
4757 4757  void
4758 4758  ddi_report_dev(dev_info_t *d)
4759 4759  {
4760      -        char *b;
4761      -
4762 4760          (void) ddi_ctlops(d, d, DDI_CTLOPS_REPORTDEV, (void *)0, (void *)0);
4763      -
4764      -        /*
4765      -         * If this devinfo node has cb_ops, it's implicitly accessible from
4766      -         * userland, so we print its full name together with the instance
4767      -         * number 'abbreviation' that the driver may use internally.
4768      -         */
4769      -        if (DEVI(d)->devi_ops->devo_cb_ops != (struct cb_ops *)0 &&
4770      -            (b = kmem_zalloc(MAXPATHLEN, KM_NOSLEEP))) {
4771      -                cmn_err(CE_CONT, "?%s%d is %s\n",
4772      -                    ddi_driver_name(d), ddi_get_instance(d),
4773      -                    ddi_pathname(d, b));
4774      -                kmem_free(b, MAXPATHLEN);
4775      -        }
4776 4761  }
4777 4762  
4778 4763  /*
4779 4764   * ddi_ctlops() is described in the assembler not to buy a new register
4780 4765   * window when it's called and can reduce cost in climbing the device tree
4781 4766   * without using the tail call optimization.
4782 4767   */
4783 4768  int
4784 4769  ddi_dev_regsize(dev_info_t *dev, uint_t rnumber, off_t *result)
4785 4770  {
↓ open down ↓ 5239 lines elided ↑ open up ↑
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX