Page MenuHomeFreeBSD

Add missing types to sysctl(9) man page
ClosedPublic

Authored by 0mp on Feb 20 2019, 8:46 PM.

Details

Summary

Several new sysctl types have been added in recent years that are not
mentioned in the main sysctl(9) man page. Update it to include these new
types among the macros/function prototypes.

Diff Detail

Lint
Lint Skipped
Unit
Unit Tests Skipped

Event Timeline

mhorne063_gmail.com retitled this revision from Mention boolean type sysctls in sysctl(9) man page to Add missing types to sysctl(9) man page.
mhorne063_gmail.com edited the summary of this revision. (Show Details)
mhorne063_gmail.com added reviewers: imp, glebius.

Update the diff to include other missing sysctl types found in sysctl.h.

Some of these sysctls are already documented in other pages (e.g counter(9)
and ZONE(9)), but they should at least be mentioned here for completeness.

This patch now documents all of the following:
SYSCTL_BOOL/SYSCTL_ADD_BOOL
SYSCTL_COUNTER_U64/SYSCTL_ADD_COUNTER_U64
SYSCTL_COUNTER_U64_ARRAY/SYSCTL_ADD_COUNTER_U64_ARRAY
SYSCTL_SBINTIME_MSEC/SYSCTL_ADD_SBINTIME_MSEC
SYSCTL_SBINTIME_USEC/SYSCTL_ADD_SBINTIME_USEC
SYSCTL_UMA_CUR/SYSCTL_ADD_UMA_CUR
SYSCTL_UMA_MAX/SYSCTL_ADD_UMA_MAX

bcr added a subscriber: bcr.

OK from manpages. Can't say much about the content itself, but syntax looks good.

This revision is now accepted and ready to land.Feb 21 2019, 8:32 PM
share/man/man9/sysctl.9
56

I've elected to break the alphabetical order here to differentiate 'UMA' prefix from the unsigned 'U' prefix. If this is undesirable let me know and I can change it back.

Great. If there's no objections can I bug one of you to commit this?

0mp added a reviewer: mhorne063_gmail.com.
This revision was automatically updated to reflect the committed changes.

Great. If there's no objections can I bug one of you to commit this?

Done! Nice work!