Commit Graph

12832 Commits

Author SHA1 Message Date
nat ea1f37116e Describe how to obtain debugging information from vchiq(4).
Ok nia@
2021-09-16 02:53:28 +00:00
nia 6c5944f65d sort 2021-09-10 22:48:19 +00:00
nia 4e08b86501 iic.4: add missing client devs (those with man pages, many don't have one) 2021-09-10 21:12:20 +00:00
msaitoh 8ab7d3270e Use MCLGET() instead of homegrown cluster (jcl) allocation mechanism.
- Before this commit, resource shortage was easily occurred because the total
  number of the clusters is small.

- Reviewed by knakahara and ryo.
2021-08-25 09:06:02 +00:00
andvar 2e0bf311b3 fix multiplei repetitive typos in comments, messages and documentation. mainly because copy paste code big amount of files are affected. 2021-08-17 22:00:26 +00:00
andvar a6c62dd046 tty.4: s/asynchronus/asynchronous/ 2021-08-17 14:11:22 +00:00
andvar d4eac28cae s/directry/directory/ 2021-08-12 20:25:26 +00:00
nia 213aa76def introduce a SOL_LOCAL for unix-domain socket level socket options
as an alias of the current 0 used for these options, as in FreeBSD.

reviewed by many.
2021-08-08 20:54:48 +00:00
andvar 5712d03cb7 change othersize to otherwise. I believe this is what was meant in the context. 2021-08-08 16:12:10 +00:00
uwe 3c26fdeeb4 autoconf(9) - Improve formatting.
Don't hide consumed cfargs in the second sentence of a function's
description, they ends up hidden towards the right margin and that
sentence is guaranteed to get a line break further reducing its
readability.  Instead make that the first sentence and start the
description with a new paragraph.  That makes it looks like part of
the signature and is much more prominent.

Various markup improvements while here.

Bump date for thorpej-cfargs2 changes.
2021-08-07 20:41:17 +00:00
andvar 3c7a3199b6 s/configuraiton/configuration/ in comments and man pages. 2021-08-07 19:41:13 +00:00
thorpej 2540f5896a Update for thorpej-cfargs2. 2021-08-07 16:20:02 +00:00
isaki 5aeec4b8b4 x68k now uses KAUTH_MACHDEP_UNMANAGEDMEM. 2021-08-07 03:28:42 +00:00
tnn 2fb83002a9 ssdfb(4): note SSD1353 support 2021-08-05 19:23:44 +00:00
andvar cba4208ca7 add pcib(4), pceb(4), pcmb(4).
pcmb is a separate man page for i386 only, pceb and pcib are references to pci(4) only and mentioned in its bridges section.
ok riastradh
2021-08-01 21:56:26 +00:00
tnn 25e0fac49a ssdfb(4): add an iic fdt attachment example also 2021-08-01 16:17:05 +00:00
tnn 2a55bc0beb ssdfb(4): nix BUGS section, add EXAMPLES section 2021-08-01 15:35:47 +00:00
wiz e2a90e41be Fix typos. 2021-07-28 11:32:21 +00:00
manu e5ffdc00de Tie the maximum file lock per unprivilegied uid to kern.maxfiles
This makes the limit simple to raise at run time. While there, document
that fcntl(2) and flock(2) may return ENOMEM when this limit is reached.
2021-07-27 09:32:55 +00:00
nia 92e19c2b10 Add a man page for amdccp(4) 2021-07-25 07:35:55 +00:00
pgoyette 7e0a9c140e module_hold() returns void, not int
XXX module_hold() and module_rele() should probably not be exposed, since
XXX they really aren't MP-safe.
2021-07-22 01:38:45 +00:00
nia d0318bc6c3 Swap encryption no longer experimental or default-off. 2021-07-13 16:56:43 +00:00
dholland 723d09ce8e Add containment for the cloning devices hack in vn_open.
Cloning devices (and also things like /dev/stderr) work by allocating
a struct file, stuffing it in the file table (which is a layer
violation), stuffing the file descriptor number for it in a magic
field of struct lwp (which is gross), and then "failing" with one of
two magic errnos, EDUPFD or EMOVEFD.

Before this commit, all callers of vn_open in the kernel (there are
quite a few) were expected to check for these errors and handle the
situation. Needless to say, none of them except for open() itself did,
resulting in internal negative errnos being returned to userspace.

This hack is fairly deeply rooted and cannot be eliminated all at
once. This commit adds logic to handle the magic errnos inside
vn_open; now on success vn_open returns either a vnode or an integer
file descriptor, along with a flag that says whether the underlying
code requested EDUPFD or EMOVEFD. Callers not prepared to cope with
file descriptors can pass NULL for the extra return values, in which
case if a file descriptor would be produced vn_open fails with
EOPNOTSUPP.

Since I'm rearranging vn_open's signature anyway, stop exposing struct
nameidata. Instead, take three arguments: an optional vnode to use as
the starting point (like openat()), the path, and additional namei
flags to use, restricted to NOCHROOT and TRYEMULROOT. (Other namei
behavior, e.g. NOFOLLOW, can be requested via the open flags.)

This change requires a kernel bump. Ride the one an hour ago.
(That was supposed to be coordinated; did not intend to let an hour
slip by. My fault.)
2021-06-29 22:40:53 +00:00
wiz e58f3f6928 Remove unnecessary Pp, fix formatting, remove empty line. 2021-06-29 10:26:00 +00:00
wiz ee7020df38 Fix date. 2021-06-29 10:25:33 +00:00
nia f3c68eb2b0 Remove uscanner(4) driver
This exists for compatibility with a Linux interface which was apparently
deprecated in Linux 2.6. There are various mailing list threads going
back to 2004 where the usefulness of this driver is discussed, but
the conclusion is that scanner software has all moved to using ugen(4)
instead, and enabling this driver will not help you scan things.
2021-06-29 10:22:33 +00:00
gutteridge 1115b3e02c boot.8: minor grammar tweaks 2021-06-22 03:39:21 +00:00
gutteridge b2e48ae440 mbr.8: fix a typo 2021-06-22 03:30:06 +00:00
yamaguchi 718c28d1e1 lagg: fix typo 2021-06-21 06:36:28 +00:00
thorpej 17524afeeb x/I no longer has special meaning on alpha, and behaves just like x/i. 2021-06-21 02:12:00 +00:00
riastradh 076e35792d if_attach and if_initialize cannot fail, don't test return value
These were originally made failable back in 2017 when if_initialize
allocated a softint in every interface for link state changes, so
that it could fail gracefully instead of panicking:

https://mail-index.NetBSD.org/source-changes/2017/10/23/msg089053.html

However, this spawned many seldom- or never-tested error branches,
which are risky to have around.  And that softint in every interface
has since been replaced by a single global workqueue, because link
state changes require thread context but not low latency or high
throughput:

https://mail-index.NetBSD.org/source-changes/2020/02/06/msg113759.html

So there is no longer any reason for if_initialize to fail.  (The
subroutine if_stats_init can't fail because percpu_alloc can't fail
either.)

There is a snag: the softint_establish in if_percpuq_create could
fail, potentially leading to bad consequences later on trying to use
the softint.  This change doesn't introduce any new bugs because of
the snag -- if_percpuq_attach was already broken.  However, the snag
can be better addressed without spawning error branches, either by
using a single softint or making softints less scarce.

(Separate commit will change the signatures of if_attach and
if_initialize to return void, scheduled to ride whatever is the next
convenient kernel bump.)

Patch and testing on amd64 and evbmips64-eb by maya@; commit message
soliloquy, and compile-testing on evbppc/i386/earmv7hf, by me.
2021-06-16 00:21:17 +00:00
jdc d9e6c5d988 Add a bugs section about inserting two cards with different requirements. 2021-06-11 05:10:45 +00:00
dholland 7cec841687 Mention in ums(4) that a lot of usb mice detach/reattcah when not in use.
Prompted by PR 56209 but not related to the actual problem there.
2021-06-07 03:04:50 +00:00
nia 6fea7fb4ad actually, an anchor is needed so the period is appended 2021-06-04 12:43:14 +00:00
nia 081ceff646 remove empty anchor text 2021-06-04 12:29:33 +00:00
nia e4f8ed1955 re-order initial sections in the order a user is likely to be able
to address them. add a section on NPF. attempt to make various things
easier to find.
2021-06-04 12:12:02 +00:00
wiz 306a842f34 Fix typo. 2021-06-04 11:56:47 +00:00
nia 1068f92f08 adjust layout of afterboot(8) to make things easier to find 2021-06-04 11:48:18 +00:00
nia 40ec0685cd capitalization police, etc 2021-06-04 11:33:18 +00:00
riastradh 96893e54be uvm(9): Enable swap encryption by default.
For machines where the performance impact of swapping before the
system has an opportunity to process `vm.swap_encrypt=0' in
/etc/sysctl.conf, you can disable it again by adding

options 	VMSWAP_DEFAULT_PLAINTEXT

to the kernel config.
2021-06-03 20:18:06 +00:00
wiz 9fa9487eaa Remove i386/autoconf(4) and i386/console(4) to x86/autoconf(4) and x86/console(4)
Part of PR 36350.
2021-06-03 07:41:26 +00:00
wiz bf53403ac2 Add commented out ASUSTek USB-N13 B1
The urtwn driver attaches, but I didn't have a chance to try if it
actually works.
2021-06-02 22:32:29 +00:00
simonb e1d48e5a8b Use <sys/param.h> in the synopsis rather than <machine/param.h>; an MI
interface should be pulled in via <sys/...>.
2021-05-31 12:24:15 +00:00
dholland 3ed1486ed0 signal.7: minor clarification. Bump date (to when I wrote the change) 2021-05-30 07:17:01 +00:00
mlelstv 93bbdd3a4c Add "root" command to pass a root specification. 2021-05-30 06:05:24 +00:00
mrg d59b5a77d7 sparc raid boot was 2006 (i had it right originally.) noted by jdc. 2021-05-27 07:23:04 +00:00
wiz 13663b19ac Use \(em. Remove superfluous Pp. 2021-05-27 07:05:26 +00:00
mrg 41c1322c84 move the basic history i wrote from raidctl(8) to raid(4), and
fix the x86 (thanks simonb) and sparc bootable dates, a couple
of spelling errors.
2021-05-27 06:53:37 +00:00
yamaguchi f0101d0e08 Add a new link-aggregation pseudo interface named lagg(4)
- FreeBSD's lagg(4) based implementation
 - MP-safe and MP-scalable
2021-05-17 04:07:41 +00:00
nia 694dad1773 wskbd.4: document neo layout 2021-05-11 14:51:34 +00:00