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.
19 .Nd deliver frames from a driver to the system
21 .In sys/mac_provider.h
25 .Fa "mac_resource_handle_t mrh"
26 .Fa "mblk_t *mp_chain"
33 The MAC handle obtained from a call to
36 A reserved parameter that should be passed as
39 A series of one or more
41 structures chained together by their
48 function is used by device drivers to deliver frames that a device
49 driver has received to the rest of the operating system.
50 This will generally be called at the end of a device driver's interrupt handler
51 after it is has converted all of the incoming data into a chain of
54 For a full description of the process that the device driver should take as part
55 of receiving data, see the
60 Device drivers should ensure that they are not holding any of their own
61 locks when they call the
65 Device drivers should not call the
67 function after each individual mblk_t is assembled.
68 Rather, the device driver should batch up as many frames as it is willing to
69 process in a given interrupt or otherwise.
73 function can be called from