Page MenuHomeFreeBSD

man9: Add a manual page for kstack_contains(9).
ClosedPublic

Authored by jkoshy on May 2 2023, 9:39 AM.
Tags
None
Referenced Files
Unknown Object (File)
Thu, May 9, 3:24 PM
Unknown Object (File)
Tue, Apr 30, 9:33 AM
Unknown Object (File)
Mon, Apr 29, 3:35 AM
Unknown Object (File)
Sat, Apr 27, 1:01 PM
Unknown Object (File)
Fri, Apr 26, 12:25 AM
Unknown Object (File)
Mon, Apr 22, 7:35 PM
Unknown Object (File)
Apr 19 2024, 5:52 PM
Unknown Object (File)
Apr 18 2024, 2:16 PM
Subscribers

Details

Summary

man9: Add a manual page for kstack_contains(9).

Diff Detail

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

Event Timeline

jkoshy requested review of this revision.May 2 2023, 9:39 AM

Thanks! This is a very welcome addition.

share/man/man9/kstack_contains.9
28

mandoc -Tlint prefers this.

35

.In machine/stack.h

39–40

(it is all threads not just kernel threads)

45
48–50

.Fa for function arguments.

56
jkoshy marked 6 inline comments as done.

Addressed review comments.

LGTM, with one more nit that can be fixed before commit.

One thing I am trying to be more considerate of when it comes to section 9 pages is "how can this page be discovered?" In other words, is it cross-referenced from another man page or is it referenced anywhere in the source code? I do not think there are any obvious candidates which should reference kstack_contains(9) in their SEE ALSO, but pointing to the man page at the kstack_contains() definitions might help the reader learn that the page exists at all. Just something to consider, I am not asking you to do anything specific here.

share/man/man9/kstack_contains.9
55

Sorry, one more that I missed.

This revision is now accepted and ready to land.May 2 2023, 3:29 PM

Address a review comment.

This revision now requires review to proceed.May 2 2023, 5:37 PM

Addressed a review comment.

This revision is now accepted and ready to land.May 2 2023, 5:55 PM

One thing I am trying to be more considerate of when it comes to section 9
pages is "how can this page be discovered?" In other words, is it cross-referenced
from another man page or is it referenced anywhere in the source code? I do not
think there are any obvious candidates which should reference kstack_contains(9)
in their SEE ALSO, but pointing to the man page at the kstack_contains() definitions
might help the reader learn that the page exists at all. Just something to consider,
I am not asking you to do anything specific here.

My guess is that readers are likely to run man 9 kstack_contains when they
come across it in the source code, so it would be implicitly discoverable.

Should we re-purpose intro(9) to mention the major groups of section 9 APIs?

Should we re-purpose intro(9) to mention the major groups of section 9 APIs?

This is actually exactly my plan, and I have a rewrite of this page in-progress. I definitely want to have that completed for the 14.0 release, so you can expect to see a review in the next couple of weeks.