Page MenuHomeFreeBSD

mbuf.9: Document mtodo
ClosedPublic

Authored by jhb on Dec 27 2023, 6:51 PM.
Tags
None
Referenced Files
Unknown Object (File)
May 10 2024, 11:11 AM
Unknown Object (File)
May 9 2024, 11:03 PM
Unknown Object (File)
May 9 2024, 6:25 PM
Unknown Object (File)
Apr 22 2024, 3:28 AM
Unknown Object (File)
Apr 22 2024, 3:28 AM
Unknown Object (File)
Apr 22 2024, 3:28 AM
Unknown Object (File)
Apr 22 2024, 3:16 AM
Unknown Object (File)
Mar 10 2024, 5:01 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.