-
Notifications
You must be signed in to change notification settings - Fork 2.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
wg.4: document kernel config option #1597
base: main
Are you sure you want to change the base?
Conversation
cc @kevans91 |
wg(4) can be compiled into the kernel (device wg), but the wg.4 manpage does not document this. adjust it to mention this like other drivers do.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can wg be loaded with kld_list? We're recommending rc.conf lately for things that don't need to be at early boot.
I really adore the style of vt(4). You might be interested in what I did here for another if_module 1.
Could we doing something like that here? I think this style is more consistent with how synopsis is in other sections of the manual and other BSDs.
Footnotes
i don't have a strong preference for wording here, but i was following the example of other drivers, e.g. if we want to recommend using
since hardware drivers can sometimes be required before the root filesystem is mounted (e.g., for NFS root) my feeling is we should only recommend alternatively, we would need to document both does that sound reasonable? what do you think? |
possible sample wording based on
although i like how concise this is, i'm a bit concerned that a new FreeBSD user will type |
The way you have written it is good by me. If @sergio-carlavilla and/or @mhorne consent, I can commit this as is. It follows what we've generally been doing the last decade or so perfectly. I am jealous of the other BSDs elegant synopsis style, and think vt(4) sets the example to achieve this elegance for FreeBSD. I think explaining what "device wg" means should be part of a new intro(4). The other BSDs just have a kernel configuration line in synopsis with no explanation for all drivers, as do commands in FreeBSD. As for loader/rc.conf, I really like that both because it's showing the ways it can be used, but I think it would need to go in intro(4) something about "kernel interfaces should be enabled via one of three methods". The redundancy could easily confuse people. |
This kind of stuff historically was in section 0, and I heard there are fundamental design issues which make bringing back section 0 unrealistic. |
wg(4) can be compiled into the kernel (device wg), but the wg.4 manpage does not document this. adjust it to mention this like other drivers do.