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
F102553400: D39933.id121575.diff
Wed, Nov 13, 11:32 PM
Unknown Object (File)
Sun, Nov 3, 5:23 AM
Unknown Object (File)
Oct 13 2024, 6:51 PM
Unknown Object (File)
Oct 13 2024, 6:51 PM
Unknown Object (File)
Oct 13 2024, 6:51 PM
Unknown Object (File)
Oct 13 2024, 6:51 PM
Unknown Object (File)
Oct 13 2024, 6:51 PM
Unknown Object (File)
Oct 13 2024, 6:48 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.