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


 161 
 162 
 163        gld_linkstate() is called by the device driver to notify GLD of changes
 164        in the media link state. The newstate argument should be set to one of
 165        the following:
 166 
 167        GLD_LINKSTATE_DOWN
 168                                  The media link is unavailable.
 169 
 170 
 171        GLD_LINKSTATE_UP
 172                                  The media link is unavailable.
 173 
 174 
 175        GLD_LINKSTATE_UNKNOWN
 176                                  The status of the media link is unknown.
 177 
 178 
 179 
 180        If a driver calls gld_linkstate(), it must also set the
 181        GLD_CAP_LINKSTATE bit  in the  gldm_capabilties field of the
 182        gld_mac_info(9S) structure.
 183 
 184 RETURN VALUES
 185        gld_mac_alloc() returns a pointer to a new gld_mac_info(9S) structure.
 186 
 187 
 188        gld_register() and gld_unregister() return:
 189 
 190        DDI_SUCCESS
 191                        on success.
 192 
 193 
 194        DDI_FAILURE
 195                        on failure.
 196 
 197 
 198 
 199        gld_intr() returns a value appropriate for an interrupt handler.
 200 
 201 SEE ALSO
 202        gld(7D), gld(9E), gld_mac_info(9S), gld_stats(9S), dlpi(7P),
 203        attach(9E), ddi_add_intr(9F)
 204 
 205 
 206        Writing Device Drivers
 207 
 208 
 209 
 210                                 August 28, 2003                        GLD(9F)


 161 
 162 
 163        gld_linkstate() is called by the device driver to notify GLD of changes
 164        in the media link state. The newstate argument should be set to one of
 165        the following:
 166 
 167        GLD_LINKSTATE_DOWN
 168                                  The media link is unavailable.
 169 
 170 
 171        GLD_LINKSTATE_UP
 172                                  The media link is unavailable.
 173 
 174 
 175        GLD_LINKSTATE_UNKNOWN
 176                                  The status of the media link is unknown.
 177 
 178 
 179 
 180        If a driver calls gld_linkstate(), it must also set the
 181        GLD_CAP_LINKSTATE bit in the gldm_capabilities field of the
 182        gld_mac_info(9S) structure.
 183 
 184 RETURN VALUES
 185        gld_mac_alloc() returns a pointer to a new gld_mac_info(9S) structure.
 186 
 187 
 188        gld_register() and gld_unregister() return:
 189 
 190        DDI_SUCCESS
 191                        on success.
 192 
 193 
 194        DDI_FAILURE
 195                        on failure.
 196 
 197 
 198 
 199        gld_intr() returns a value appropriate for an interrupt handler.
 200 
 201 SEE ALSO
 202        gld(7D), gld(9E), gld_mac_info(9S), gld_stats(9S), dlpi(7P),
 203        attach(9E), ddi_add_intr(9F)
 204 
 205 
 206        Writing Device Drivers
 207 
 208 
 209 
 210                                February 15, 2020                       GLD(9F)