site_archiver@lists.apple.com Delivered-To: darwin-kernel@lists.apple.com User-agent: Thunderbird 1.5.0.4 (Windows/20060516) Anton To make the copy, you can use mbuf_dup. -josh _______________________________________________ Do not post admin requests to the list. They will be ignored. Darwin-kernel mailing list (Darwin-kernel@lists.apple.com) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/darwin-kernel/site_archiver%40lists.a... As I understand, there's one caveat with mbuf_dup: if it's an mbuf on the input path from a network device driver, the data pointer (and length) should be temporarily adjusted to point to the media header, otherwise mbuf_dup doesn't copy it across, which might be useful if there's a need to inject the copy back into the input path. Josh Graessley wrote: Peter is correct. You can use mbuf_mclhasreference to determine if you need to copy the mbuf before modifying the data. This email sent to site_archiver@lists.apple.com
participants (1)
-
Anton Kuzmin