Print this page
fixup .text where possible
7127  remove -Wno-missing-braces from Makefile.uts

Split Close
Expand all
Collapse all
          --- old/usr/src/uts/common/io/hook.c
          +++ new/usr/src/uts/common/io/hook.c
↓ open down ↓ 39 lines elided ↑ open up ↑
  40   40   * This file provides kernel hook framework.
  41   41   */
  42   42  
  43   43  static struct modldrv modlmisc = {
  44   44          &mod_miscops,                           /* drv_modops */
  45   45          "Hooks Interface v1.0",                 /* drv_linkinfo */
  46   46  };
  47   47  
  48   48  static struct modlinkage modlinkage = {
  49   49          MODREV_1,                               /* ml_rev */
  50      -        &modlmisc,                              /* ml_linkage */
  51      -        NULL
       50 +        {   &modlmisc,                          /* ml_linkage */
       51 +            NULL }
  52   52  };
  53   53  
  54   54  static const char *hook_hintvalue_none = "<none>";
  55   55  
  56   56  /*
  57   57   * How it works.
  58   58   * =============
  59   59   * Use of the hook framework here is tied up with zones - when a new zone
  60   60   * is created, we create a new hook_stack_t and are open to business for
  61   61   * allowing new hook families and their events.
↓ open down ↓ 2504 lines elided ↑ open up ↑
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX