Commit Graph

12832 Commits

Author SHA1 Message Date
roy 9fc1f4f01f Note that opening and closing the tun/tap devices affects link state.
And how this influences Duplicate Address Detection.
2020-09-27 19:36:54 +00:00
roy ec0ebd44c4 bridge(4): Note that the bridge does not allow assignment of IP addresses
Document using vether(4) instead to get the same effect.
2020-09-27 15:42:48 +00:00
roy 0ba6243a0a tap(4): Improve the description to differentiate from vether(4) 2020-09-27 15:19:04 +00:00
wiz a36255044e Fix punctuation nit and add RCS Id. 2020-09-27 13:59:24 +00:00
roy e81d19b9cb tap: Report link state based on if the interface has been opened or not
While a nice addition, it does render tap(4) useless as a bridge(4)
endpoint. We now have vether(4) for use as bridge endpoint.
2020-09-27 13:44:47 +00:00
roy 4b44dc0b5e vether: Implement a virtual ethernet interface
The vether interface simulates a normal Ethernet interface by encapsulating
standard network frames with an Ethernet header, specifically for use as
a member in a bridge(4).

To use vether the administrator needs to configure an address onto the
interface so that packets can be routed to it. An Ethernet header will
be prepended and, if the vether interface is a member of a bridge(4),
the frame will show up there.

Taken from OpenBSD.
2020-09-27 13:31:04 +00:00
jakllsch ffb4801553 Fix weird spelling, refresh date. 2020-09-22 01:11:48 +00:00
nia 3d17cb2105 do not use WEP 2020-09-21 17:52:31 +00:00
kim 8cdafcce1e Add MLINKS for empb.4 2020-09-21 08:46:07 +00:00
wiz 207ba25b58 Bump date for previous. 2020-09-13 07:36:55 +00:00
mlelstv ad2d0017d3 Document keyboard mode ioctls and let wsconsctl manage it. 2020-09-13 07:35:15 +00:00
roy f9cd9ecd85 sysctl: Adjust man page for new ARP sysctl ND settings 2020-09-11 15:16:48 +00:00
wiz d7913f1566 New sentence, new line. 2020-09-11 12:20:01 +00:00
kim 62e78738da Document update_motd_release and motd_release_tag 2020-09-11 12:01:59 +00:00
wiz 7088981fda Serial comma. 2020-09-08 17:30:44 +00:00
wiz 428b31fd5e Improve BINDANY formatting. 2020-09-08 17:30:10 +00:00
wiz 850df987a7 Remove superfluous Pp. 2020-09-08 17:29:20 +00:00
wiz 1e0cbee197 Use \(em. 2020-09-08 17:29:09 +00:00
riastradh d18cf1b917 workqueue: Lift unnecessary restriction on workqueue_wait.
Allow multiple concurrent waits at a time, and allow enqueueing work
at the same time (as long as it's not the work we're waiting for).
This way multiple users can use a shared global workqueue and safely
wait for individual work items concurrently, while the workqueue is
still in use for other items (e.g., wg(4) peers).

This has the side effect of taking away a diagnostic measure, but I
think allowing the diagnostic's false positives instead of rejecting
them is worth it.  We could cheaply add it back with some false
negatives if it's important.
2020-09-08 17:02:18 +00:00
christos e5e40d965d Add IP_BINDANY, IPV6_BINDANY which can be used to bind to any address in
order to implement transparent proxies.
2020-09-08 14:12:57 +00:00
wiz dd6ca9990a Remove empty line. End sentence with dot. Avoid unnecessary linebreak. 2020-09-08 10:07:35 +00:00
yamaguchi f474b47c56 Added iavf(4) that is based on OpenBSD's iavf(4) implementation
reviewed by msaitoh@n.o and knakahara@n.o
2020-09-08 10:05:47 +00:00
riastradh 11002ee06b threadpool: Fix man page for threadpool_job_init.
This is threadpool_job_init(job, fn, interlock, fmt, args...), not
just threadpool_job_init(job, fn, interlock).
2020-09-07 01:07:38 +00:00
maxv 4a2e4dc388 nvmm: update copyright headers 2020-09-05 07:22:25 +00:00
riastradh be78b0a273 atomic_load/store_* appeared in NetBSD 9, not 10.
Pullup preceded release of 9.0.
2020-09-03 00:23:57 +00:00
uwe 913086d6b0 More clarifications from Dan Plassche. 2020-09-02 23:38:11 +00:00
riastradh 63ba4b950e Spell out acronyms in title for clarity. 2020-09-02 19:04:05 +00:00
uwe cadd41c60c Fix chroot path (in a comment). 2020-09-02 00:15:15 +00:00
uwe 4895509f32 Improvements from Dan Plassche. 2020-09-01 01:15:28 +00:00
riastradh 4bf5fd0b75 wg: Remove IFF_POINTOPOINT.
Unclear why this was set; setting it seems to have required a kludge
in netinet/in.c that broke ipsec tunnels.  Clearing it makes wg work
again after that kludge was reverted.
2020-08-31 20:20:22 +00:00
uwe 9158e53999 Minor wording tweaks from Dan Plassche. 2020-08-29 21:42:25 +00:00
fcambus 527132cc8c Fix a bunch of typos in various man pages. 2020-08-29 13:32:27 +00:00
wiz 50aa92b7d9 Add RCS Id. Remove Pp before/after Sh. Remove port after section,
since the man page is in man8 directly (the ports are mentioned
in the text).
2020-08-28 17:13:13 +00:00
fcambus a3f30bc3f5 Fix a bunch of typos in various device drivers and kernel man pages. 2020-08-28 16:07:49 +00:00
uwe a839347f7f Formatting tweaks. 2020-08-28 15:35:34 +00:00
christos fd1af70506 New man page from Dan Plassche. 2020-08-28 12:13:09 +00:00
hannken c1106e4a4f Another typo -- its vfs_newvnode(). 2020-08-28 07:28:59 +00:00
riastradh 5307371bf3 thmap(9): Minor readability and style tweaks.
- Fix typo: hmap -> thmap

- Reduce excessive indentation.

- Specify largest entry width for flag name table.

- Include parameter names in function descriptions for easier
  reference.
2020-08-28 07:03:41 +00:00
fcambus aa9ad6b429 Fix a bunch of typos in various kernel man pages. 2020-08-27 14:14:00 +00:00
riastradh 25154f5f0c Clarify wg(4)'s relation to WireGuard, pending further discussion.
Still planning to replace wgconfig(8) and wg-keygen(8) by one wg(8)
tool compatible with wireguard-tools; update wg(4) for the minor
changes from the 2018-06-30 spec to the 2020-06-01 spec; &c.  This just
clarifies the current state of affairs as it exists in the development
tree for now.

Mark the man page EXPERIMENTAL for extra clarity.
2020-08-26 16:03:40 +00:00
ryoon 3ea17bd477 Sort correctly, pointed by wiz@. Thank you 2020-08-25 15:31:24 +00:00
ryoon c0e80e46cf Do not split for AUTHORS
And bump date.
2020-08-24 19:36:32 +00:00
ryoon 2906f3a5f1 Add a missing comma
And bump date
2020-08-24 19:32:33 +00:00
ryoon 2f676885a3 Add COMPAT_90
And bump date.
2020-08-24 19:30:00 +00:00
ryoon 1a756d3f9b Add a missing comma
And bump date.
2020-08-24 19:27:36 +00:00
ryoon ffc2b60eb2 Markup authors
And bump date.
2020-08-24 19:25:57 +00:00
ryoon 061048509a Link to i386/spic(4) instead of spic(4)
And bump date.
2020-08-24 19:22:06 +00:00
ryoon c48880b9cf Link to i386/pnpbios(4) instead of pnpbios(4)
And bump date.
2020-08-24 19:16:42 +00:00
nia e0214d24d5 afterboot.8: If it needs a disclaimer that most people shouldn't do it... 2020-08-24 12:58:16 +00:00
nia cc5aa5b8ac afterboot.8: uname -p, pointed out by various people 2020-08-24 12:45:48 +00:00
nia 5312d4af65 afterboot.8: Start the daemons after configuring wpa_supplicant. 2020-08-24 12:35:48 +00:00
nia 2143acc357 afterboot.8: Use wpa_* for everything WiFi, update links
reasoning: ifconfig scan is unreliable while wpa_supplicant is running
2020-08-24 12:29:30 +00:00
tpaul 0a69e03611 Man page typo fix. 2020-08-23 20:23:56 +00:00
ryoon 27be0897f2 Link to i386/pnpbios(4) instead of pnpbios(4)
And bump date.
2020-08-23 13:35:46 +00:00
wiz 1f2c862562 Fix editor mistake in previous. 2020-08-23 09:55:58 +00:00
simonb b60880f7ca Document the MIPs "mips machine {cpu,nmi,watch,unwatch}" commands.
Add commented out stubs for the mfcr and mtcr commands.
2020-08-23 03:23:53 +00:00
simonb 5ec8357b74 Use upper-case "CPU" consistently in all text except DDB command names. 2020-08-23 03:17:00 +00:00
wiz a594b160b2 Quote dot. 2020-08-21 08:09:55 +00:00
riastradh 1690246c02 Slightly less indentation. 2020-08-20 22:20:50 +00:00
riastradh d324f7ae25 Fix self-xref. Indent example displays. 2020-08-20 22:19:56 +00:00
riastradh 0252686c58 Fill out WireGuard man pages. 2020-08-20 21:35:59 +00:00
msaitoh cc67c5474a s/ be be / be / 2020-08-19 02:19:06 +00:00
riastradh 07c506680f Move wayward clause to where it belongs and makes sense.
Note how blowfish-cbc chooses the CBC IV.
2020-08-17 17:18:02 +00:00
wiz 106ec726e5 cprng(9): Remove trailing comma. 2020-08-17 06:07:53 +00:00
riastradh c4125b7509 Update cprng_strong API documentation.
Should maybe just get rid of the flags arguments.
2020-08-17 00:55:05 +00:00
riastradh 819baeb60c Update cprng(9) man page for CTR_DRBG -> Hash_DRBG change last year. 2020-08-17 00:49:53 +00:00
riastradh 9493ed8295 Update cgd(4) man page.
- Highlight security model at top.
- Add adiantum and aes-xts.
- Split ciphers into `ciphers' and `obsolete ciphers'.
- Specify the parameters to the ciphers: tweak, CBC IV.
- Relegate obsolete `IV method' concept to a much shorter section.
- Add references.
2020-08-17 00:43:15 +00:00
thorpej 2ba5a80446 Be explcit that all calls to pmap_activate() and pmap_deactivate()
from MI code are made with preemption disabled and with l == curlwp.
2020-08-16 16:48:08 +00:00
nia a39c900319 afterboot.8: Correct URL directory order 2020-08-15 14:45:31 +00:00
nia aec9844dc5 afterboot.8: Use cdn. Don't be arch specific. Requested by leot. 2020-08-15 14:42:02 +00:00
nia 5d8c072424 afterboot.8: Mention mdnsd 2020-08-15 13:49:09 +00:00
nia 75bbbb9826 afterboot.8: Explain devpubd 2020-08-15 13:44:14 +00:00
nia e33fbdfad9 afterboot.8: Be clearer about exactly when you might need to login as root 2020-08-15 13:35:12 +00:00
nia 857376a344 afterboot.8: Explain how to install pkgin on a fresh system 2020-08-15 13:32:26 +00:00
nia 21521a3c01 afterboot.8: Explain how connecting to open WiFi works with wpa_supplicant 2020-08-15 13:25:14 +00:00
rin 2cfebd8121 Fix typo: than --> then. Probably not worth bumping date. 2020-08-10 09:30:21 +00:00
uwe cc0600711b Formatting fixes for PostScript output.
Mostly use .Ar instead of .Va and use -literal, .Ql, etc where
appropriate.
2020-08-10 01:10:26 +00:00
kim d02a9c330e Fix cross-refs to x86/mbr that were still missing x86
Additionally made some typo fixes, and added some vertical whitespace
to lists that felt crowded. Unified markup for displaying commands.
2020-08-09 18:54:59 +00:00
mrg 92a9ab1f55 fix a couple of minor issues:
- un_ed is not a function, but an array
- fix a typo
- add a blank line after a list
2020-08-09 09:20:30 +00:00
wiz 29f550240c Remove trailing whitespace. 2020-08-07 20:17:59 +00:00
christos 9a91acb10a Catch up with genfs_can argument changes 2020-08-07 18:13:19 +00:00
christos ccc5c96d19 Catch up with lktype addition. 2020-08-07 17:59:32 +00:00
skrll 0902b73820 G/C USE_TOPDOWN_VM. __USE_TOPDOWN_VM is used (and hidden) 2020-08-04 06:10:27 +00:00
wiz 6b5b1a3c75 Fix typo. 2020-08-01 09:51:06 +00:00
wiz 44506434c1 Fix typo in macro and merge to error descriptions for the same error 2020-08-01 09:50:42 +00:00
maxv b84521f2f3 Remove references to BRIDGE_IPF, it is now compiled in by default. 2020-08-01 08:20:47 +00:00
riastradh d7f8883fa9 New workqueue flag WQ_FPU.
Arranges kthread_fpu_enter/exit around calls to the worker.  Saves
cost over explicit calls to kthread_fpu_enter/exit in the worker by
only doing it once, since there's often a high cost to flushing the
icache and zeroing the fpu registers.

As proposed on tech-kern:
https://mail-index.netbsd.org/tech-kern/2020/06/20/msg026524.html
2020-08-01 02:14:43 +00:00
riastradh 7c54d842f7 New functions kthread_fpu_enter/exit.
The MI definitions don't do anything but maintain a flag, but MD code
can define kthread_fpu_enter/exit_md to actually enable/disable the
FPU.  (These are almost pcu_load/discard on systems that use pcu(9),
except they apply to all PCUs.)

Discussed on tech-kern:
https://mail-index.netbsd.org/tech-kern/2020/06/20/msg026524.html

The proposed kthread flag KTHREAD_FPU is not included because I
couldn't find any particular need for it that would not be covered by
just calling kthread_fpu_enter/exit in the kthread function.
2020-08-01 02:04:55 +00:00
jdolecek 9c53671351 add reference to net/py-xmm7360 for the network initialization script 2020-07-27 14:17:47 +00:00
jdolecek 030019dcc8 more attribution 2020-07-27 11:12:56 +00:00
wiz 4fb043ce84 Minor wording improvements. 2020-07-26 21:47:16 +00:00
jdolecek 183910b65f finish sentence 2020-07-26 15:57:03 +00:00
jdolecek 73e870b5dc add note that the network initialization script needs the device nodes
to be created
2020-07-26 15:56:30 +00:00
jdolecek 6b6d7b2ff3 add rudimentary wwanc(4) manpage 2020-07-26 15:13:09 +00:00
leot 562d999853 Document unbound and unbound_chrootdir. 2020-07-15 17:55:34 +00:00
leot 093639c62c MKBSDTAR is yes by default 2020-07-15 17:46:06 +00:00
jruoho f1c3cdfd23 's/blacklistd/blocklistd/'. Note also blocklistd_flags. 2020-07-15 16:52:48 +00:00
jruoho e86652a33f Note modules. 2020-07-15 16:46:11 +00:00
kim 7392fbb224 Document optional speed argument to consdev 2020-07-15 12:38:30 +00:00
jdolecek 5b894df5c4 update list of matched adapters 2020-07-14 17:39:19 +00:00
jruoho de35f5b630 Xref rfc6056(7). 2020-07-13 15:05:05 +00:00
uwe 08e4367608 Try to improve markup, PostScript output. 2020-07-13 14:11:16 +00:00
pgoyette 78e3bc6422 Imnprove previous. 2020-07-13 13:42:51 +00:00
jruoho f2ada8ae6b Complete the example. 2020-07-13 12:44:04 +00:00
nia f694c820c6 obviously wrong country code 2020-07-13 11:59:37 +00:00
wiz d85411472e Whitespace/macro usage fixes. 2020-07-13 11:24:27 +00:00
nia 02a8d4e3ea wskbd.4: Add KB_LA 2020-07-13 11:15:48 +00:00
nia 4a2e556972 Move description of keyboard layouts to wskbd.4, add newer layouts
Previously, the best reference was pckbd.4. This does not make much
sense to read if you are on, say, an evbarm device with only USB.

wsconsctl.8 contained a vaguer description of supported language names,
which isn't very useful because you can't pass full language names
to the command. Point readers to wskbd.4 instead.

Note in the wskbd.4 page that while all layouts are generally supported
by pckbd(4) and ukbd(4), older keyboard interfaces might only support
a subset.
2020-07-13 11:14:12 +00:00
jruoho 0eb7ac5e23 Add stub manual pages for /etc/changelist and /etc/pkgpath.conf.
Fixes PR bin/55477.
2020-07-13 09:10:34 +00:00
wiz 2f0f2880cd Fix xref. 2020-07-13 08:59:34 +00:00
wiz 63b4dc12b3 New sentence, new line. 2020-07-13 08:58:48 +00:00
jruoho 7d2da5ea1f Add the missing rescue(8) and tests(7) sets. XXX: this manual is somewhat
broken due to the differences in the archival formats used.
2020-07-13 07:26:27 +00:00
simonb f732e865a3 Copy "mach reset" logic from arm32 recently added by jmcneill@. The
previous MIPS "mach reset" DDB command was hard-coded for Octeon Cavium
CPUs only.
2020-07-13 05:20:45 +00:00
skrll 1fde49c064 Note arm KUBSAN support 2020-07-12 13:40:44 +00:00
maxv 0d658a2d6f fix inaccuracy about kmsan 2020-07-12 10:10:53 +00:00
nia 1930f11c1e Update lists of keyboard layouts to add Turkish and Brazilian 2020-07-12 01:36:32 +00:00
skrll d329adb039 Add support for KASAN on ARMv[67]
Thanks to maxv for many pointers and reviews.
2020-07-10 12:25:08 +00:00
wiz 9749401cc3 Remove trailing comma. 2020-07-10 06:28:49 +00:00
thorpej 26c5d1c962 Update pci_configure_bus(9) to reflect the new reality -- no more manual
fiddling with extent maps, use pciconf_resource_{init,add,fini}() instead.
2020-07-10 02:27:13 +00:00
uwe c3c716f32b Fix the include file name in the synopsis.
While here, drop the device path from synopsis,
its place is in the files section.
2020-07-05 03:44:13 +00:00
uwe ae1206698b Clarify initial state some more.
Mention that the initial current octave is 4.  Drop filler verbiage
that octaves are "from C to B".
2020-07-05 01:05:01 +00:00
uwe 918bd55417 Clarify that whitespace is only ignored between groups.
Actually everything that doesn't start a group is ignored.
Whitespace is not allowed inside groups.
2020-07-05 00:38:23 +00:00
uwe bdbca37a95 BUGS: note that meaning of sustain dots differs from the standard notation.
From FreeBSD.
2020-07-05 00:33:18 +00:00
uwe ace06697fe Middle C is in O2 (from RTFS). 2020-07-04 23:24:10 +00:00
uwe 87c8858e80 Add more markup. Edit for clarity. 2020-07-04 23:09:43 +00:00
christos af4576753e add missing arg 2020-07-04 21:07:29 +00:00
uwe 124a6fcf7c Fix off by one in the range of note values (in one instance).
From xordspar0 at gmail.
2020-07-04 19:25:24 +00:00
ryoon f75ffeda10 man4: Add Linux USB 3.0 debu port to ugensa.4 2020-07-04 08:10:21 +00:00
jmcneill 336dbb3e65 Add ddb "mach reset" command for Arm ports. 2020-07-02 11:10:47 +00:00
maxv 64f849a4c1 fix file path 2020-06-30 16:22:55 +00:00
jruoho 319465cf55 As bin/55344 was fixed, note the flags also in rc.conf(5). 2020-06-24 10:30:43 +00:00
wiz bc3f8a62e1 New sentence, new line. Fix macro arguments. Improve Nd.
Remove superfluous Pp. Other minor cleanups.
2020-06-24 08:20:13 +00:00
maxv 61584588ce kernel_sanitizers.7 2020-06-23 16:08:46 +00:00
wiz 6778ca9128 Remove trailing whitespace. 2020-06-19 07:25:20 +00:00
kamil 460ab12717 Document kmem_strdup() and kmem_strndup()
Added in 2018 by christos@ in sys/sys/kmem.h r. 1.11.
2020-06-18 23:30:51 +00:00
wiz e830eb67a9 Add acl(9) from FreeBSD.
Needs work before it should be added to the build.
2020-06-18 20:38:42 +00:00
thorpej 4abc8d232e Add vmem_xfreeall(), which frees all allocated regions in the specified arena.
All outstanding allocations MUST have been performed with vmem_xalloc() or
else the behavior is undefined.  (This also implies that the arena must also
not have a quantum cache; note this in the documentation.)
2020-06-16 01:29:00 +00:00
rkujawa 6944fee265 is -> are 2020-06-14 22:30:44 +00:00
ad 83f424cd54 g/c vm.idlezero 2020-06-13 20:18:00 +00:00
wiz a00a9756c0 Use more markup. 2020-06-12 20:58:43 +00:00
roy fead816208 bpf(4): Add ioctls BIOCSETWF and BIOCLOCK
Once BIOCLOCK is executed, the device becomes locked which prevents the
execution of ioctl(2) commands which can change the underlying parameters
of the bpf(4) device. An example might be the setting of bpf(4) filter
programs or attaching to different network interfaces.

BIOCSETWF can be used to set write filters for outgoing packets.
Currently if a bpf(4) consumer is compromised, the bpf(4) descriptor can
essentially be used as a raw socket, regardless of consumer's UID.
Write filters give users the ability to constrain which packets can be sent
through the bpf(4) descriptor.

Taken from OpenBSD.
2020-06-11 13:36:20 +00:00
sevan 919267d79b Use Dx macro 2020-06-08 20:19:12 +00:00
sevan 7b7e9ceaac Pp before Bl 2020-06-08 17:28:10 +00:00
sevan 0d0557bb3b white space 2020-06-08 17:19:44 +00:00
wiz 4a32f951d1 Add missing comma. 2020-06-04 13:45:19 +00:00
jdolecek 918a50ed58 slightly improve sentence, no need to 'Note' when in NOTES section 2020-05-30 17:18:22 +00:00
jdolecek 4da6fcc004 remove M_SOFTDEP from list of supported malloc types, it's long gone
also remove M_PCB - while it is used by SCTP, it's actually not defined
anywhere

in fact add new NOTES section explaining that the malloc types are
actually not used on NetBSD
2020-05-30 17:12:01 +00:00
nia 3b4f5b4cb0 Remove extremely outdated list of supported devices.
Since this man page will likely be read on a running system, I don't
think providing a list of very old devices that might work is
necessarily useful.
2020-05-27 13:49:16 +00:00
jdc e738d60314 Add tadpmu to Makefile and set list. 2020-05-19 06:26:37 +00:00
wiz 80892d06ff Whitespace fixes and a serial comma. 2020-05-18 16:42:05 +00:00
jdc 2f8e1da7e4 Add a basic manual page for tadpmu. 2020-05-18 08:40:44 +00:00
riastradh 9c94f9d816 Remove obsolete paragraph. 2020-05-17 01:00:34 +00:00
tnn 79915ae707 wsdisplay.4: correct ioctl name for WSDISPLAYIO_GET_FBINFO 2020-05-16 20:27:38 +00:00
maya 5cf9e8b81f Remove uyap, USB YAP phone firmware loader.
And the associated ezload EZ-USB code, which is only used by uyap.
It could theoretically be used by other drivers, but none of them are
in tree.

I suspect that this device isn't in use, as phone technology has improved
a lot since 2001 when uyap(4) was added to the tree.

Proposed with no objections on netbsd-users on 13 April 2020
2020-05-16 13:46:10 +00:00
kamil b2e8cbc777 Fix typo
Reported by vezhlys on IRC.
2020-05-15 09:21:59 +00:00
snj f27f66ae80 - prune src/gnu and src/sys/netsmb
- add src/sys/netcan
- remove bogus statement about location of reachover Makefiles
- tweak language
2020-05-14 16:32:57 +00:00
leot 467c5d63f6 Remove a reference to /etc/netstart
It was removed in rc.d era and no longer honored (except by newbtconf(8)).

Noticed by Ottavio Caruso on #netbsd@Freenode, thanks!
2020-05-12 10:20:16 +00:00
riastradh f21348ab88 Remove timedwaitclock.
This did not fix the bug I hoped it would fix in futex, and needs
more design thought.  Might redo it somewhat differently later.
2020-05-11 03:59:33 +00:00
riastradh 4fe11140e4 Mark experimental-default-off knobs clearly as such. 2020-05-10 02:32:32 +00:00
riastradh f96b491d2f Document vm.swap_encrypt. 2020-05-10 02:31:29 +00:00
riastradh 3d1d29c849 Tweak kern.arandom documentation. 2020-05-10 02:30:33 +00:00
wiz de5a2786ff Fix macro usage. 2020-05-07 12:56:19 +00:00
rkujawa c388420a0e Document the HDAUDIO_ENABLE_HDMI and HDAUDIO_ENABLE_DISPLAYPORT options. 2020-05-06 20:15:15 +00:00
riastradh df65398010 Update to reflect change to message. 2020-05-06 18:38:20 +00:00
wiz 8b5b0fc37e Improve markup. 2020-05-04 15:13:45 +00:00
wiz 3b9d941ba3 Break line after macro arguments end. Use \- for minus. 2020-05-04 15:10:40 +00:00
riastradh 5d5b825847 Bump date. 2020-05-03 04:06:15 +00:00
riastradh c97c41e809 Document cv_timedwaitclock. 2020-05-03 04:05:50 +00:00
riastradh 6d64c76acc Add a note about setting the timeout to zero _and_ returning success. 2020-05-03 04:05:28 +00:00
riastradh 5b0aa16b11 Simplify example of cv_timedwaitbt.
It is simpler if there is only one place we check the condition.

That said, there are cases where the caller needs to re-check before
choosing to fail (e.g., futex_wait in kern/sys_futex.c, which must
verify the condition before taking destructive steps to abort the
wait).  But it's not clear that that's the norm.
2020-05-03 04:05:00 +00:00
riastradh a36c0b2b71 Update cv_timedwaitbt documentation to reflect useful reality.
Previously, a negative timeout was forbidden (kassert), a zero or
maybe even just a sufficiently small timeout would block forever, and
we would subtract the time elapsed -- possibly longer than the
timeout, leading to a negative updated timeout, which would trip the
kassert the next time around if used as advertised.  DERP.

Now negative timeouts are still forbidden in order to detect usage
mistakes, but a zero timeout fails immediately and we clamp the
subtracted time to be at least zero so you can always safely call
cv_timedwaitbt in a loop.

(An alternative would be to fail immediately for all nonpositive
timeouts, and to leave in the timespec the negative time we overshot,
but it's not clear this would be useful.)
2020-05-03 04:04:32 +00:00
jdolecek 40ace5566a link also m_apply(9) to mbuf(9) 2020-05-01 21:43:23 +00:00
riastradh 9dcd95ee64 Combine some related paragraphs. 2020-05-01 19:56:08 +00:00
riastradh 57efbe1b81 Tighten language so it fits in one paragraph again.
This way the first two paragraphs have parallel structure:

- _Applications_ should read from /dev/urandom or sysctl kern.arandom...
- _Systems_ should be engineered to read once from /dev/random...
2020-05-01 19:54:37 +00:00
nia 47b7f85860 rnd.4: Bump dates. 2020-05-01 12:43:33 +00:00
nia 0714b28933 rnd.4: Explain why libraries should use kern.arandom over /dev/urandom 2020-05-01 12:30:16 +00:00
nia a04ab133b7 Update documentation of kern.arandom. It uses cprng_strong(9). 2020-05-01 10:06:09 +00:00
riastradh 5084c1b50f Rewrite entropy subsystem.
Primary goals:

1. Use cryptography primitives designed and vetted by cryptographers.
2. Be honest about entropy estimation.
3. Propagate full entropy as soon as possible.
4. Simplify the APIs.
5. Reduce overhead of rnd_add_data and cprng_strong.
6. Reduce side channels of HWRNG data and human input sources.
7. Improve visibility of operation with sysctl and event counters.

Caveat: rngtest is no longer used generically for RND_TYPE_RNG
rndsources.  Hardware RNG devices should have hardware-specific
health tests.  For example, checking for two repeated 256-bit outputs
works to detect AMD's 2019 RDRAND bug.  Not all hardware RNGs are
necessarily designed to produce exactly uniform output.

ENTROPY POOL

- A Keccak sponge, with test vectors, replaces the old LFSR/SHA-1
  kludge as the cryptographic primitive.

- `Entropy depletion' is available for testing purposes with a sysctl
  knob kern.entropy.depletion; otherwise it is disabled, and once the
  system reaches full entropy it is assumed to stay there as far as
  modern cryptography is concerned.

- No `entropy estimation' based on sample values.  Such `entropy
  estimation' is a contradiction in terms, dishonest to users, and a
  potential source of side channels.  It is the responsibility of the
  driver author to study the entropy of the process that generates
  the samples.

- Per-CPU gathering pools avoid contention on a global queue.

- Entropy is occasionally consolidated into global pool -- as soon as
  it's ready, if we've never reached full entropy, and with a rate
  limit afterward.  Operators can force consolidation now by running
  sysctl -w kern.entropy.consolidate=1.

- rndsink(9) API has been replaced by an epoch counter which changes
  whenever entropy is consolidated into the global pool.
  . Usage: Cache entropy_epoch() when you seed.  If entropy_epoch()
    has changed when you're about to use whatever you seeded, reseed.
  . Epoch is never zero, so initialize cache to 0 if you want to reseed
    on first use.
  . Epoch is -1 iff we have never reached full entropy -- in other
    words, the old rnd_initial_entropy is (entropy_epoch() != -1) --
    but it is better if you check for changes rather than for -1, so
    that if the system estimated its own entropy incorrectly, entropy
    consolidation has the opportunity to prevent future compromise.

- Sysctls and event counters provide operator visibility into what's
  happening:
  . kern.entropy.needed - bits of entropy short of full entropy
  . kern.entropy.pending - bits known to be pending in per-CPU pools,
    can be consolidated with sysctl -w kern.entropy.consolidate=1
  . kern.entropy.epoch - number of times consolidation has happened,
    never 0, and -1 iff we have never reached full entropy

CPRNG_STRONG

- A cprng_strong instance is now a collection of per-CPU NIST
  Hash_DRBGs.  There are only two in the system: user_cprng for
  /dev/urandom and sysctl kern.?random, and kern_cprng for kernel
  users which may need to operate in interrupt context up to IPL_VM.

  (Calling cprng_strong in interrupt context does not strike me as a
  particularly good idea, so I added an event counter to see whether
  anything actually does.)

- Event counters provide operator visibility into when reseeding
  happens.

INTEL RDRAND/RDSEED, VIA C3 RNG (CPU_RNG)

- Unwired for now; will be rewired in a subsequent commit.
2020-04-30 03:28:18 +00:00
jmcneill c2bf22a2df Add support for Realtek RTS522A 2020-04-27 23:06:34 +00:00
simonb 3fd4d3b537 More path markup. Ref wizd(8). 2020-04-26 00:40:10 +00:00
wiz 9f6b6bc85a Use more markup. 2020-04-25 13:51:04 +00:00
simonb 1051ded1d9 Document the "database" configuration option. 2020-04-25 10:56:53 +00:00
jdolecek 642bc4c72b bump date 2020-04-24 13:54:56 +00:00
jdolecek 09a2b15c05 actually MBUFTRACE does splvm(), kpreempt_disable()/enable() and percpu,
this has non-slight overhead - amend documentation to stop claiming
the overhead is slight

adresses PR port-xen/50290
2020-04-24 13:47:50 +00:00
ryo 7d182e1a03 add AQC100, AQC100S, D100 2020-04-24 04:37:27 +00:00
jdolecek 4e451dae6b fix tyop 2020-04-23 15:55:14 +00:00
jdolecek 00eb0f15bf elaborate on why we don't support hardware checksum offloading, and probably
never will
2020-04-23 15:54:36 +00:00
simonb a539149917 Note that these drivers are present on some newer AMD Family 15h
processors.
2020-04-20 11:09:48 +00:00
gutteridge 277fa1cfb2 fstab.5: note the first field is a placeholder for some FSes
Addresses PR misc/52607. (I suppose something about this could also be
added to the man pages for the mount commands for each applicable file
system, but I think this should suffice.)
2020-04-19 19:20:32 +00:00
wiz 0f2169d04c Remove trailing comma. 2020-04-18 18:55:20 +00:00
jdolecek efee1aad48 remove documentation for (non-atomic) boottime, it was eliminated
from kernel in 2020-01-02 by thorpej@
2020-04-17 17:43:38 +00:00
kim 568e57b236 Update date 2020-04-17 13:36:48 +00:00
pgoyette 2a14d5b775 Put the spaces back (they're part of the config(1) syntax) but quote
them to avoid formatting errors
2020-04-16 18:56:04 +00:00
pgoyette 0be19164f9 Remove extraneous spaces 2020-04-16 18:51:47 +00:00
kim aae8c85b3e Add an "rtsol" keyword to ifconfig.if for enabling IPv6 RS/RA 2020-04-15 20:31:57 +00:00
simonb 1c61f00504 Add xref to umodem(4). Mistake picked up by wizd(8), but somewhat
unexpectedly it didn't correct the reference to the one I meant but
got wrong.  Need to remember to file a bug report against wizd(8).
2020-04-13 11:17:27 +00:00
jdolecek a6db9077db remove the In-System design note, related code is about to be dropped and
it doesn't make sense to have a note about things we don't support
2020-04-13 09:15:54 +00:00
wiz 6618bd8ba0 Remove superfluous whitespace & macros. 2020-04-13 08:59:14 +00:00
wiz 5f0ae7a9b4 Fix date. Remove Xr to non-existent modem(4). Serial comma. Use more macros. 2020-04-13 08:46:39 +00:00
wiz 0e961a0fbe Bump date for previous 2020-04-13 08:45:11 +00:00
chs 328da78dac slightly change and fix the semantics of pool_set*wat(), pool_sethardlimit()
and pool_prime() (and their pool_cache_* counterparts):

 - the pool_set*wat() APIs are supposed to specify thresholds for the count of
   free items in the pool before pool pages are automatically allocated or freed
   during pool_get() / pool_put(), whereas pool_sethardlimit() and pool_prime()
   are supposed to specify minimum and maximum numbers of total items
   in the pool (both free and allocated).  these were somewhat conflated
   in the existing code, so separate them as they were intended.

 - change pool_prime() to take an absolute number of items to preallocate
   rather than an increment over whatever was done before, and wait for
   any memory allocations to succeed.  since pool_prime() can no longer fail
   after this, change its return value to void and adjust all callers.

 - pool_setlowat() is documented as not immediately attempting to allocate
   any memory, but it was changed some time ago to immediately try to allocate
   up to the lowat level, so just fix the manpage to describe the current
   behaviour.

 - add a pool_cache_prime() to complete the API set.
2020-04-13 00:27:16 +00:00
simonb cddaf0cb47 Add NetBSD CVS tag. 2020-04-12 02:04:12 +00:00
simonb a91470c59b Add uxrcom driver for Exar XR21V141x USB serial adapters. Based in part
on the OpenBSD single-port XR21V1410 uxrcom driver, but adds support
for multi-port chipsets and uses the common umodem framework instead of
being a standalone driver.

Thanks to skrll@ for much USB clue and mrg@ for financing the
development of this driver.
2020-04-12 01:10:53 +00:00
ad e0bb7e8edd - Make this needed sequence always work for condvars, by not touching the CV
again after wakeup.  Previously it could panic because cv_signal() could
  be called by cv_wait_sig() + others:

	cv_broadcast(cv);
	cv_destroy(cv);

- In support of the above, if an LWP doing a timed wait is awoken by
  cv_broadcast() or cv_signal(), don't return an error if the timer
  fires after the fact, i.e. either succeed or fail, not both.

- Remove LOCKDEBUG code for CVs which never worked properly and is of
  questionable use.
2020-04-10 17:16:21 +00:00
jdolecek 0b4aefec80 add a warning in checksum offload that hardware TCP segmentation might be
slow

on I219 I observe about 35% transmit performance drop when tso4 enabled
2020-04-08 23:01:51 +00:00
jdolecek 1243d69abd bring the section on automatic acquisition of kernel_lock up-to-date 2020-04-07 07:25:09 +00:00
rin 6776cf02ff Remove copy-paste garbage. 2020-04-06 08:26:33 +00:00
jdolecek b122d52951 remove RX flip from diagnostic, it was removed 2020-04-05 19:03:30 +00:00
jdolecek b28734a61b remove SMBFS and nsmb/netsmb - userland part 2020-04-04 15:39:13 +00:00
jdolecek fea2af3136 remove mount_smbfs(8)/nsmb(4) references 2020-04-04 15:32:42 +00:00
roy 61a9079563 Add _dhcpcd entries. 2020-04-02 20:57:20 +00:00
gson 42a6cab883 Fix incorrect device path. OK jmcneill. 2020-04-01 15:42:15 +00:00
gson 1db3cc90ce regen 2020-04-01 15:33:50 +00:00
ryo 36b02b5b3e add missing netmos devices
- NetMos NM9900 PCIe (pucdata.c r1.106)
- NetMos NM9912 PCIe (pucdata.c r1.104)
- NetMos NM9855 PCIe (pucdata.c r1.49)
2020-03-31 07:08:59 +00:00
maya 9d3388e3c9 Don't mention a.out support, which does not exist in ddb any more. 2020-03-30 20:47:57 +00:00
wiz 528cd50a16 Remove trailing whitespace. 2020-03-28 05:47:41 +00:00
isaki 9dfdc1fc6d Add description about channel limitation introduced in audio.c 1.43.
PR kern/54973.
2020-03-28 04:55:08 +00:00
isaki 819aaeb57a Revert 1.96, 1.97 and 1.100. (no response from nia@)
These changes are not correct nor notable unresolvable problem.
If you find any problems, please send a report before changing manpage.
2020-03-28 04:21:58 +00:00
skrll c97977ea42 Fix cprng_fast64 return type to match code 2020-03-24 08:48:31 +00:00
wiz 5303923225 Fix some typos, remove unnecessary Pp 2020-03-20 08:02:55 +00:00
thorpej a3d4be7fa6 Update for recent locking changes. 2020-03-20 01:15:05 +00:00
nia e911afe581 audio.4: 1-12 channels are only universally supported for playback.
When a mono recording device is set to use 1 channel, the kernel will
correct the number of channels back down to 1. This information can be
obtained with AUDIO_GETINFO...
2020-03-17 10:50:59 +00:00
nia 2dc9c196d6 audio.4: Mention the blk_ms sysctl 2020-03-16 19:20:36 +00:00
wiz 6d5974e98f Sort sections. 2020-03-16 13:02:05 +00:00
nia 02ea559cdf pms.4: Typo. 2020-03-16 09:31:41 +00:00
nia bfc83a571c audio.4: O_NONBLOCK isn't the actual problem 2020-03-16 09:20:01 +00:00
nia b65a7a635c audio.4: Remove reference to using O_NONBLOCK
It doesn't work properly, but this turns out to not be a problem in most
code (code where it is generally uses threads)...

Don't provide misleading information about using it, or programmers
might start wondering why their code doesn't work.

Noted by Yorick Hardy on current-users
2020-03-16 08:50:06 +00:00
nia dd302e79dd synaptics: Set up_down_emulation=3 by default.
It's a less surprising default for modern hardware.
2020-03-14 19:29:39 +00:00
ad be9c6147a4 pmap_remove_all(): Return a boolean value to indicate the behaviour. If
true, all mappings have been removed, the pmap is totally cleared out, and
UVM can then avoid doing the work to call pmap_remove() for each map entry.
If false, either nothing has been done, or some helpful arch-specific voodoo
has taken place.
2020-03-14 14:05:42 +00:00
nia 6fe7b60978 synaptics: Make up_down_emulation useful for single-button clickpads
On devices such as the Thinkpad X250, the clickpad can be pressed
to generate mouse button events 1 and 2. There are also additional
physical buttons which the pms(4) driver recognizes as "up/down" buttons
(mouse buttons 3 and 4). Allow these to be remapped to buttons 1 and 2
and used like normal touchpad buttons with the following sysctl:

# sysctl -w hw.synaptics.up_down_emulation=3

While here, adjust the existing "middle button emulation"
(hw.synaptics.up_down_emulation=1) so it works with single-button
clickpads.

XXX: 3 may be a more useful default than the current default,
depending on hardware availability of touchpads with "up/down buttons".

Update the documentation accordingly.
2020-03-14 13:08:18 +00:00
tnn a5b3fa3e75 correct documentation for options TFTPROOT
TFTPROOT does *not* require MEMORY_DISK_IS_ROOT. In fact, it doesn't
work at all when MEMORY_DISK_IS_ROOT is set, because then setroot()
tries to perform dhcp on md0 instead of the network card.
2020-03-07 23:17:47 +00:00
isaki b7468096e2 Describe about (existing) constraints on round_blocksize(). 2020-02-29 05:39:03 +00:00
kim aa06efc870 Typo fix (remove extra TPM) 2020-02-28 07:31:38 +00:00
kim 7fa57f6b97 Fix .Dt to match installed section 2020-02-28 07:30:51 +00:00
uwe 035e2f78b0 Make .Bl -width match the actual .It usage. 2020-02-26 18:39:24 +00:00
uwe 79985dd01d Minor formatting tweaks. 2020-02-26 18:32:57 +00:00
uwe e979ab6242 Fix unedited pasto. 2020-02-26 18:25:39 +00:00
wiz ed72789936 Minor fixes. 2020-02-26 10:06:08 +00:00
wiz 795276af5a Fix Xr section numbers. 2020-02-26 10:04:32 +00:00
riastradh e4d662933e Draft man pages for the standard users and groups.
These are currently listed in order of uid because I went through
src/etc/group and src/etc/master.passwd line by line, and sorting any
other way after the fact -- like lexicographically, how it should be
-- was kinda inconvenient.

Feel free to sort, add information, add historical references,
correct any mistakes, &c., so that these remain living documents
describing NetBSD's standard users and groups and practices around
them.
2020-02-26 07:31:51 +00:00
rin c7f03ba743 Add one more: Buffalo BSUSRC06. 2020-02-25 11:36:48 +00:00
rin 897e200cea Add CableCreation CD0487 to supported adapter list.
Bump date.
2020-02-25 11:32:09 +00:00
mrg 0cf113e74f install rw_lock_op link too. 2020-02-23 08:57:44 +00:00
isaki 92e2bd444b Make start_input/halt_input optional if the driver has no recording,
make start_output/halt_output optional if the driver has no playback.
And remove such never called functions.
2020-02-23 04:02:45 +00:00
ad 284662e223 Add rw_lock_op(): return either RW_READER or RW_WRITER for a lock that is
known to be held by the caller.  Panic if the lock is not held.
2020-02-22 21:24:44 +00:00
martin fe36d07293 Move sysinst man page next to the source 2020-02-19 21:42:53 +00:00
jmcneill 02f33d7bd0 Remove azalia(4) references, spotted by maxv 2020-02-16 10:45:42 +00:00
sevan e15af42da1 grammar 2020-02-13 22:48:11 +00:00
ryoon b48c5a02dc Add description on hw.alps.touchpad_movement_threshold 2020-02-10 16:13:48 +00:00
ryoon 3f4e05bdbc Reflect typo fix, bump date 2020-02-10 15:30:33 +00:00