Print this page
12309 errors in section 9e of the manual
*** 9,19 ****
.\" http://www.illumos.org/license/CDDL.
.\"
.\"
.\" Copyright 2016 Joyent, Inc.
.\"
! .Dd June 02, 2016
.Dt MC_SETPROP 9E
.Os
.Sh NAME
.Nm mc_setprop
.Nd set device properties
--- 9,19 ----
.\" http://www.illumos.org/license/CDDL.
.\"
.\"
.\" Copyright 2016 Joyent, Inc.
.\"
! .Dd February 15, 2020
.Dt MC_SETPROP 9E
.Os
.Sh NAME
.Nm mc_setprop
.Nd set device properties
*** 111,121 ****
and return
.Sy 0 .
Otherwise, a positive error should be returned to indicate failure.
.Sh EXAMPLES
The following examples shows how a device driver might structure its
! .Fn mc_setporp
entry point.
.Bd -literal
#include <sys/mac_provider.h>
/*
--- 111,121 ----
and return
.Sy 0 .
Otherwise, a positive error should be returned to indicate failure.
.Sh EXAMPLES
The following examples shows how a device driver might structure its
! .Fn mc_setprop
entry point.
.Bd -literal
#include <sys/mac_provider.h>
/*
*** 127,137 ****
* For the purpose of this example, we assume that this device supports 100 Mb,
* 1 GB, and 10 Gb full duplex speeds.
*/
static int
! exmple_m_setprop(void *arg, const char *pr_name, mac_prop_id_t pr_num,
uint_t pr_valsize, const void *pr_val)
{
uint32_t new_mtu;
int ret = 0;
example_t *ep = arg;
--- 127,137 ----
* For the purpose of this example, we assume that this device supports 100 Mb,
* 1 GB, and 10 Gb full duplex speeds.
*/
static int
! example_m_setprop(void *arg, const char *pr_name, mac_prop_id_t pr_num,
uint_t pr_valsize, const void *pr_val)
{
uint32_t new_mtu;
int ret = 0;
example_t *ep = arg;