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

Split Close
Expand all
Collapse all
          --- old/usr/src/man/man9e/mc_getprop.9e
          +++ new/usr/src/man/man9e/mc_getprop.9e
↓ 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 2016 Joyent, Inc.
  13   13  .\"
  14      -.Dd November 15, 2016
       14 +.Dd February 15, 2020
  15   15  .Dt MC_GETPROP 9E
  16   16  .Os
  17   17  .Sh NAME
  18   18  .Nm mc_getprop
  19   19  .Nd get device properties
  20   20  .Sh SYNOPSIS
  21   21  .In sys/mac_provider.h
  22   22  .Ft int
  23   23  .Fo prefix_m_getprop
  24   24  .Fa "void *driver"
↓ open down ↓ 113 lines elided ↑ open up ↑
 138  138  
 139  139  static int
 140  140  example_m_getprop_private(example_t *ep, const char *pr_name, uint_t pr_valsize,
 141  141      void *pr_val)
 142  142  {
 143  143          uint32_t val;
 144  144  
 145  145          ASSERT(MUTEX_HELD(&ep->ep_lock));
 146  146          if (strcmp(pr_name, example_priv_props[0] == 0) {
 147  147                  val = ep->ep_rx_itr;
 148      -        } else if (strcmp(pr_name, exampe_priv_props[1] == 0) {
      148 +        } else if (strcmp(pr_name, example_priv_props[1] == 0) {
 149  149                  val = ep->ep_tx_itr;
 150  150          } else {
 151  151                  return (ENOTSUP);
 152  152          }
 153  153  
 154  154          /*
 155  155           * Due to issues in the GLDv3, these must be returned as string
 156  156           * properties.
 157  157           */
 158  158          if (snprintf(pr_val, pr_valsize, "%d", val) >= pr_valsize)
↓ open down ↓ 78 lines elided ↑ open up ↑
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX