Page MenuHomeFreeBSD

virtio: start simple, document virtio_endian(9)
AcceptedPublic

Authored by freebsd_igalic.co on Sep 13 2023, 10:38 PM.
Referenced Files
Unknown Object (File)
Sun, Apr 28, 9:23 PM
Unknown Object (File)
Sun, Apr 28, 11:31 AM
Unknown Object (File)
Sun, Apr 7, 8:05 PM
Unknown Object (File)
Sun, Apr 7, 10:37 AM
Unknown Object (File)
Mar 30 2024, 8:00 PM
Unknown Object (File)
Feb 24 2024, 1:21 AM
Unknown Object (File)
Jan 30 2024, 1:54 AM
Unknown Object (File)
Dec 23 2023, 3:19 AM

Details

Reviewers
bryanv
alfredo
cperciva
mhorne
fernape
Group Reviewers
manpages
Summary

This is really just to get the basic man page structure down, and hook
it to the build system.

PR: 272716
Sponsored by: The FreeBSD Foundation

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Skipped
Unit
Tests Skipped

Event Timeline

This man page is basically perfect, but I'd still like to first hear some feedback on language, grammar, consistency, before opening this up to the people who know the code.

pstef added inline comments.
share/man/man9/virtio_endian.9
53

I don't know whether the the should be here and above, but currently it's inconsistently used.

58

I think it's conventional to spell this pass-through or passthrough.

freebsd_igalic.co marked 2 inline comments as done.

thank you for the review @pstef!
This update addresses your comments.

fernape added inline comments.
share/man/man9/virtio_endian.9
65

I would detail the example. We know by the description that the modern parameter controls whether the function acts as a passthrough, but we don't know which case is which.
Maybe something like This example returns a number with the byte order swapped or something like that.

freebsd_igalic.co edited the summary of this revision. (Show Details)
freebsd_igalic.co retitled this revision from virtio: start simple with virtio_endian(9) to virtio: start simple, document virtio_endian(9).
freebsd_igalic.co edited the summary of this revision. (Show Details)

i think this is ready to land now.

and if so, it could be MFC'd.

LGTM but I would like to know the opinion of an src committer before this lands.

This revision is now accepted and ready to land.Sep 24 2023, 4:19 PM
yuripv added inline comments.
share/man/man9/Makefile
2331

I don't think this is correct, we already have htole16.9, htole32.9, and htole64.9 links pointing to byteorder(9), and letoh* ones do not exist.

You should rather add the functions that man page describes to the NAME section and provide links for those here.

share/man/man9/virtio_endian.9
13

Add functions the man page describes here.

48
51
52
55
56
57

I don't completely understand what this is saying, you first say that the functions do something, but then contradict it as depending on the parameter :)

I'd start with something like "if modern is true, these functions return val unchanged. Otherwise the functions ....... act as ....., respectively".

share/man/man9/Makefile
2331

thanks for catching this.
I'll correct that, but given these comments, https://reviews.freebsd.org/D41852#957171
it's starting to look like my pursuit is pointless.