Copies data from an mbuf chain to a specified buffer.
Item | Description |
---|---|
m | Indicates the mbuf structure, or the head of a list of mbuf structures, to be copied. |
off | Specifies an offset into data from which copying starts. |
len | Denotes the total number of bytes to copy. |
cp | Points to a data buffer into which to copy the mbuf data. |
The m_copydata kernel service makes a copy of the structure specified by the m parameter. The copy begins at the specified bytes (represented by the off parameter) and continues for the number of bytes specified by the len parameter. The data is copied into the buffer specified by the cp parameter.
The m_copydata kernel service can be called from either the process or interrupt environment.
The mcopydata service has no return values.