Page MenuHomeFreeBSD

mbuf.9: Document mtodo
ClosedPublic

Authored by jhb on Dec 27 2023, 6:51 PM.
Tags
None
Referenced Files
F106028337: D43215.id131923.diff
Tue, Dec 24, 3:32 AM
Unknown Object (File)
Oct 22 2024, 9:11 AM
Unknown Object (File)
Oct 22 2024, 9:11 AM
Unknown Object (File)
Oct 22 2024, 9:11 AM
Unknown Object (File)
Oct 22 2024, 9:00 AM
Unknown Object (File)
Oct 19 2024, 6:34 PM
Unknown Object (File)
Oct 19 2024, 6:34 PM
Unknown Object (File)
Oct 19 2024, 6:34 PM
Subscribers

Details

Summary

mtodo() accepts an mbuf and offset and returns a void * pointer to the
requested offset into the mbuf's associated data. Similar to mtod(),
no bounds checking is performed.

Sponsored by: Chelsio Communications

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

jhb requested review of this revision.Dec 27 2023, 6:51 PM

I like this. Not 100% it's all correct, but I like it.

share/man/man9/mbuf.9
55

Type or void *?

This revision is now accepted and ready to land.Dec 27 2023, 8:38 PM
share/man/man9/mbuf.9
55

mtod does a cast of (type) on the return value. Possibly this should be .Ft Fa type though

share/man/man9/mbuf.9
55

Oh right. I'm in the network stack so infrequently I'd forgotten. I think that markup might be a bit better.

This revision was automatically updated to reflect the committed changes.