Print this page
12309 errors in section 9e of the manual

Split Close
Expand all
Collapse all
          --- old/usr/src/man/man9f/mac_register.9f.man.txt
          +++ new/usr/src/man/man9f/mac_register.9f.man.txt
↓ open down ↓ 88 lines elided ↑ open up ↑
  89   89        * upon the driver.
  90   90        */
  91   91  
  92   92       static char *example_priv_props[] = {
  93   93               "_rx_intr_throttle",
  94   94               "_tx_intr_throttle",
  95   95               NULL
  96   96       };
  97   97  
  98   98       static mac_callbacks_t example_m_callbacks = {
  99      -             .mc_callbacsk = MC_GETCAPAB | MC_SETPROP | MC_GETPROP | MC_PROPINFO |
       99 +             .mc_callbacks = MC_GETCAPAB | MC_SETPROP | MC_GETPROP | MC_PROPINFO |
 100  100                   MC_IOCTL,
 101  101               .mc_start = example_m_start,
 102  102               .mc_stop = example_m_stop,
 103  103               .mc_setpromisc = example_m_setpromisc,
 104  104               .mc_multicst = example_m_multicst,
 105  105               .mc_unicst = example_m_unicst,
 106  106               .mc_tx = example_m_tx,
 107  107               .mc_ioctl = example_m_ioctl,
 108  108               .mc_getcapab = example_m_getcapab,
 109  109               .mc_getprop = example_m_getprop,
↓ open down ↓ 12 lines elided ↑ open up ↑
 122  122                       return (B_FALSE);
 123  123  
 124  124               mac->m_type_ident = MAC_PLUGIN_IDENT_ETHER;
 125  125               mac->m_driver = ep;
 126  126               mac->m_dip = ep->ep_dev_info;
 127  127               mac->m_src_addr = ep->ep_mac_addr;
 128  128               mac->m_callbacks = &example_m_callbacks;
 129  129               mac->m_min_sdu = 0;
 130  130               mac->m_max_sdu = ep->ep_sdu;
 131  131               mac->m_margin = VLAN_TAGSZ;
 132      -             mac->m_priv_props = exmple_priv_props;
      132 +             mac->m_priv_props = example_priv_props;
 133  133  
 134  134               status = mac_register(mac, &ep->ep_mac_hdl);
 135  135               mac_free(mac);
 136  136  
 137  137               return (status == 0);
 138  138       }
 139  139  
 140  140  ERRORS
 141  141       The mac_register() function may fail if:
 142  142  
↓ open down ↓ 34 lines elided ↑ open up ↑
 177  177  
 178  178       Note the set of errors for both the mac_regster() and mac_unregister()
 179  179       functions are not set in stone and may be expanded in future revisions.
 180  180       In general, all errors should be handled by the device driver in similar
 181  181       ways for these functions.
 182  182  
 183  183  SEE ALSO
 184  184       attach(9E), detach(9E), mac(9E), mac_alloc(9F), mac_init_ops(9F),
 185  185       mac_callbacks(9S), mac_register(9S)
 186  186  
 187      -illumos                       September 22, 2017                       illumos
      187 +illumos                        February 15, 2020                       illumos
    
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX