Page MenuHomeFreeBSD

mbuf.9: Document mtodo
ClosedPublic

Authored by jhb on Dec 27 2023, 6:51 PM.
Tags
None
Referenced Files
Unknown Object (File)
Tue, Oct 22, 9:11 AM
Unknown Object (File)
Tue, Oct 22, 9:11 AM
Unknown Object (File)
Tue, Oct 22, 9:11 AM
Unknown Object (File)
Tue, Oct 22, 9:00 AM
Unknown Object (File)
Sat, Oct 19, 6:34 PM
Unknown Object (File)
Sat, Oct 19, 6:34 PM
Unknown Object (File)
Sat, Oct 19, 6:34 PM
Unknown Object (File)
Sat, Oct 19, 6:00 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.