Index Index for
Section 9
Index Alphabetical
listing for M
Bottom of page Bottom of
page

mtod(9r)

NAME

mtod - General: Converts an mbuf pointer to a data pointer of the correct type

SYNOPSIS

#include <sys/mbuf.h> void * mtod( struct mbuf *m, void *type );

ARGUMENTS

m Specifies a pointer to an mbuf structure. type Specifies the data pointer of the desired type.

DESCRIPTION

The mtod interface converts an mbuf pointer to a data pointer of the specified type.

RETURN VALUES

On successful completion, the mtod interface returns a data pointer of the specified type.

SEE ALSO

Data Structures: mbuf(9s)

Index Index for
Section 9
Index Alphabetical
listing for M
Top of page Top of
page