Page MenuHomeFreeBSD

Add sbintime.9 manual page
Needs ReviewPublic

Authored by khng on Sun, Jun 28, 9:36 PM.
Tags
None
Referenced Files
F161723604: D57931.id180888.diff
Mon, Jul 6, 6:26 AM
F161711244: D57931.diff
Mon, Jul 6, 4:12 AM
F161684768: D57931.id180897.diff
Sun, Jul 5, 10:46 PM
F161660043: D57931.id.diff
Sun, Jul 5, 5:11 PM
Unknown Object (File)
Sat, Jul 4, 12:43 AM
Unknown Object (File)
Fri, Jul 3, 5:18 AM
Unknown Object (File)
Thu, Jul 2, 4:15 PM
Unknown Object (File)
Thu, Jul 2, 8:14 AM
Subscribers

Details

Reviewers
imp
ziaee
Group Reviewers
manpages
Summary

sbintime.9 is a manual page that documents the usage of sbintime_t and
its helper functions.

MFC after: 1 week

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Skipped
Unit
Tests Skipped
Build Status
Buildable 74365
Build 71248: arc lint + arc unit

Event Timeline

khng requested review of this revision.Sun, Jun 28, 9:36 PM
share/man/man9/sbintime.9
1–24

This is the updated preferred license in our license guide and style.9

khng marked an inline comment as done.

Addressed ziaee@'s comments.

Found another minor grammatical nit. I don't really understand enough to know why we would choose "a" or "the" for these. Also, would you please "Relnotes: yes" this?

share/man/man9/sbintime.9
66

We usually use imperative tone across our docs

72
79

ditto

86

ditto

92

ditto

97

ditto

103

ditto

108

ditto

114

ditto

119

ditto

126

ditto

133

ditto

140

ditto

khng marked 13 inline comments as done.

Addressed ziaee@'s comments.

Editorial looks good from manpages but I'd wait for someone who understands sbintime to review also. Thanks for writing this!

This revision is now accepted and ready to land.Mon, Jun 29, 1:40 AM
markj added inline comments.
share/man/man9/sbintime.9
62

IMO it'd be helpful to state the unit: the lower 32 bits are counting with a base unit of 1/2^{32} seconds, so (sbintime_t)0x1 corresponds to ~0.25ns. At least, that's my understanding.

150

Probably at least bintime.9 and callout.9 should link back to this page.

khng marked 2 inline comments as done.

Incorporate markj@'s suggestions.

This revision now requires review to proceed.Sat, Jul 4, 11:08 AM

Looks basically good. Just a couple of points, the biggest one is to use an approximation to help people reason and think about the quantity w/o burdening them with the exact value.

share/man/man9/sbintime.9
65

I'd be tempted to just round it and say 'just under 250 picoseconds'. That helps people reason about the numbers they are seeing, has the useful approximation of #/4 is nano seconds. If you want the exact value, you can do the math.

73

I'd be tempted to say 'whole number' instead of number here to emphasize that we're truncating the value to the number of seconds.

94

all the Xstosbt are designed to do the math w/o large truncation errors that are possible with naive math to do the conversion. Maybe say that somewhere?

khng marked 3 inline comments as done.
  • Incorporated imp@'s suggestions
  • Mentioned that Xstosbt functions were introduced in 14.0

Can you also Relnotes: yes?

I don't understand why this man page (or any section 9 page) needs to be mentioned in the release notes. It's just documenting some internals, nothing that anyone other than a kernel developer might care about...

I don't understand why this man page (or any section 9 page) needs to be mentioned in the release notes. It's just documenting some internals, nothing that anyone other than a kernel developer might care about...

The new doc is a new feature we spent expert time to develop during the release. We do put the doc section at the bottom since it's kind of niche, but some readers get excited about them, and it gets more eyes on it.