MFC r345220:Fix build for KLD dyn_sysctl exampleLooks like the example was broken by change of SYSCTL_STATIC_CHILDRENdefinition in r267992. Fix build by switching to using SYSCTL_ADD_ROOT_NODE
MFC r345220:Fix build for KLD dyn_sysctl exampleLooks like the example was broken by change of SYSCTL_STATIC_CHILDRENdefinition in r267992. Fix build by switching to using SYSCTL_ADD_ROOT_NODEPR: 236139Submitted by: Andrew Reiter <[email protected]>
show more ...
share and pc-sysinstall: adoption of SPDX licensing ID tags.Mainly focus on files that use BSD 2-Clause license, however the tool Iwas using misidentified many licenses so this was mostly a manual
share and pc-sysinstall: adoption of SPDX licensing ID tags.Mainly focus on files that use BSD 2-Clause license, however the tool Iwas using misidentified many licenses so this was mostly a manual - errorprone - task.The Software Package Data Exchange (SPDX) group provides a specificationto make it easier for automated tools to detect and summarize well knownopensource licenses. We are gradually adopting the specification, notingthat the tags are considered only advisory and do not, in any way,superceed or replace the license texts.Commit these apart because compile testing doesn't guarantee I didn't madesome nasty mistake. No functional change intended.
Update share/examples/* to properly install /usr/share/examples.As result of this, a new examples package is now created.Note, this is only effective with 'SHARED=copies' (the default),as the 'S
Update share/examples/* to properly install /usr/share/examples.As result of this, a new examples package is now created.Note, this is only effective with 'SHARED=copies' (the default),as the 'SHARED=symlinks' mechanism will create a symlink to thesource tree version of the file(s).Sponsored by: The FreeBSD Foundation
Revert previous commit...Pointyhat to: kevlo (myself)
Prefer NULL over 0 for pointers
Minor style(9) improvement
Fix a few more SYSCTL_PROC() that were missing a CTLFLAG type specifier.
Where if not in examples we should follow style(9)?
According to module(9), when command is unrecognized, the module shouldreturn EOPNOTSUPP.
Removed unneeded stuff.
Unbreak by syncing with changes in <sys/sysctl.h> macros.
These patches implement dynamic sysctls. It's possible now to addand remove sysctl oids at will during runtime - they don't rely onlinker sets. Also, the node oids can be referenced by more thanon
These patches implement dynamic sysctls. It's possible now to addand remove sysctl oids at will during runtime - they don't rely onlinker sets. Also, the node oids can be referenced by more thanone kernel user, which means that it's possible to create partiallyoverlapping trees.Add sysctl contexts to help programmers manage multiple dynamicoids in convenient way.Please see the manpages for detailed discussion, and example modulefor typical use.This work is based on ideas and code snippets coming from manypeople, among them: Arun Sharma, Jonathan Lemon, Doug Rabson,Brian Feldman, Kelly Yancey, Poul-Henning Kamp and others. I'd liketo specially thank Brian Feldman for detailed review and stylefixes.PR: kern/16928Reviewed by: dfr, green, phk