Copies data from an mbuf chain to a specified buffer.
#include <sys/types.h> #include <sys/errno.h> #include <sys/mbuf.h>
void m_copydata (m, off, len, cp) struct mbuf *m; int off; int len; caddr_t cp;
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.
The m_copydata kernel service is part of Base Operating System (BOS) Runtime.
The m_copy macro.
I/O Kernel Services in AIX Kernel Extensions and Device Support Programming Concepts.