- macOS 10.4+
The mbuf to attach this tag to.
A module identifier returned by mbuf_tag_id_find.
A 16 bit type value. For a given module_id, you can use a number of different tag types.
The length, in bytes, to allocate for storage that will be associated with this tag on this mbuf.
Indicate whether you want to block and wait for memory if memory is not immediately available.
Upon successful return, *data_p will point to the buffer allocated for the mtag.
0 upon success otherwise the errno error.
Allocate an mbuf tag. Mbuf tags allow various portions of the stack to tag mbufs with data that will travel with the mbuf through the stack.
Tags may only be added to mbufs with packet headers (MBUF_PKTHDR flag is set). Mbuf tags are freed when the mbuf is freed or when mbuf_tag_free is called.