2 .\" This file and its contents are supplied under the terms of the
3 .\" Common Development and Distribution License ("CDDL"), version 1.0.
4 .\" You may only use this file in accordance with the terms of version
7 .\" A full copy of the text of the CDDL should have accompanied this
8 .\" source. A copy of the CDDL is also available via the Internet at
9 .\" http://www.illumos.org/license/CDDL.
12 .\" Copyright 2016 Joyent, Inc.
15 .Dt MAC_LINK_UPDATE 9F
19 .Nd inform the MAC layer about a link state change
21 .In sys/mac_provider.h
25 .Fa "link_state_t link"
32 The MAC handle obtained from a call to
35 The current state of the link.
36 For valid link states see the discussion of
46 function is used by device drivers to inform the MAC layer that the
47 state of a link has changed.
52 the driver should call this whenever it detects that the state of the
54 If the state has not changed, then the driver should not call this function.
55 In addition, if the device driver is powering off the link or is transitioning
56 to a state where it can no longer determine the link status, then it should make
57 sure to call this function with the value of
60 .Sy LINK_STATE_UNKNOWN .
62 Device drivers should ensure that they're not holding any of their
63 specific locks when calling this function.
67 function may be called from