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
          +++ new/usr/src/man/man9f/mac_register.9f
↓ open down ↓ 3 lines elided ↑ open up ↑
   4    4  .\" You may only use this file in accordance with the terms of version
   5    5  .\" 1.0 of the CDDL.
   6    6  .\"
   7    7  .\" A full copy of the text of the CDDL should have accompanied this
   8    8  .\" source.  A copy of the CDDL is also available via the Internet at
   9    9  .\" http://www.illumos.org/license/CDDL.
  10   10  .\"
  11   11  .\"
  12   12  .\" Copyright (c) 2017, Joyent, Inc.
  13   13  .\"
  14      -.Dd September 22, 2017
       14 +.Dd February 15, 2020
  15   15  .Dt MAC_REGISTER 9F
  16   16  .Os
  17   17  .Sh NAME
  18   18  .Nm mac_register ,
  19   19  .Nm mac_unregister
  20   20  .Nd register and unregister a device driver from the MAC framework
  21   21  .Sh SYNOPSIS
  22   22  .In sys/mac_provider.h
  23   23  .Ft int
  24   24  .Fo mac_register
↓ open down ↓ 138 lines elided ↑ open up ↑
 163  163   * upon the driver.
 164  164   */
 165  165  
 166  166  static char *example_priv_props[] = {
 167  167          "_rx_intr_throttle",
 168  168          "_tx_intr_throttle",
 169  169          NULL
 170  170  };
 171  171  
 172  172  static mac_callbacks_t example_m_callbacks = {
 173      -        .mc_callbacsk = MC_GETCAPAB | MC_SETPROP | MC_GETPROP | MC_PROPINFO |
      173 +        .mc_callbacks = MC_GETCAPAB | MC_SETPROP | MC_GETPROP | MC_PROPINFO |
 174  174              MC_IOCTL,
 175  175          .mc_start = example_m_start,
 176  176          .mc_stop = example_m_stop,
 177  177          .mc_setpromisc = example_m_setpromisc,
 178  178          .mc_multicst = example_m_multicst,
 179  179          .mc_unicst = example_m_unicst,
 180  180          .mc_tx = example_m_tx,
 181  181          .mc_ioctl = example_m_ioctl,
 182  182          .mc_getcapab = example_m_getcapab,
 183  183          .mc_getprop = example_m_getprop,
↓ open down ↓ 12 lines elided ↑ open up ↑
 196  196                  return (B_FALSE);
 197  197  
 198  198          mac->m_type_ident = MAC_PLUGIN_IDENT_ETHER;
 199  199          mac->m_driver = ep;
 200  200          mac->m_dip = ep->ep_dev_info;
 201  201          mac->m_src_addr = ep->ep_mac_addr;
 202  202          mac->m_callbacks = &example_m_callbacks;
 203  203          mac->m_min_sdu = 0;
 204  204          mac->m_max_sdu = ep->ep_sdu;
 205  205          mac->m_margin = VLAN_TAGSZ;
 206      -        mac->m_priv_props = exmple_priv_props;
      206 +        mac->m_priv_props = example_priv_props;
 207  207  
 208  208          status = mac_register(mac, &ep->ep_mac_hdl);
 209  209          mac_free(mac);
 210  210  
 211  211          return (status == 0);
 212  212  }
 213  213  .Ed
 214  214  .Sh ERRORS
 215  215  The
 216  216  .Fn mac_register
↓ open down ↓ 59 lines elided ↑ open up ↑
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX