Commit Graph

2435 Commits

Author SHA1 Message Date
yamt
dbf67aa479 fix a description of PMAP_PREFER argument. 2012-02-16 12:10:10 +00:00
wiz
7f2677a5a5 Bump date for previous. 2012-02-13 13:23:29 +00:00
njoly
5e9c51f65d Fix copyin/copyout sections in xrefs. 2012-02-13 13:01:39 +00:00
wiz
f85441243b Add locking description to some functions.
Add FILES section referencing source code.
From Julian Fagir in PR 45988.
2012-02-13 12:49:35 +00:00
dholland
62cfdf3316 Quota-related docs fixes:
- Remove old quotactl(2); replace with new __quotactl(2).
- Document quota_getrestrictions(3), the semantic restriction codes,
  and quota_quotaon/off(3).
- Update VFS_QUOTACTL(9), which was still describing the pre-proplib API.

Approved by releng for the freeze.
2012-02-13 01:24:00 +00:00
wiz
8292e96d35 Bump date for previous, per mbalmer. 2012-02-08 09:32:47 +00:00
wiz
9f4d0385b5 xref rwlock instead of deprecated lockmgr.
From Julian Fagir in PR 45944.
2012-02-08 08:25:05 +00:00
drochner
75699fcff7 document pci_aprint_devinfo(9) (not the _fancy variant yet because
it is still experimental)
2012-01-30 19:20:13 +00:00
wiz
b377f34442 Fix word duplication in previous. 2012-01-28 13:26:12 +00:00
rmind
be9b34c425 Update ltsleep(9) man page. 2012-01-28 13:12:52 +00:00
rmind
f1f4283156 Replace pcq(9) with the implementation from ad@ and minor changes by me.
PR/40516, PR/45631.
2012-01-22 02:55:47 +00:00
cegger
a02b2c29fa fix secmodel implementation of CPU_UCODE.
ok wiz@ for the manpages
ok elad@
2012-01-17 10:47:26 +00:00
wiz
7af0bef7e5 Use more markup. Increase table width since longest string changed. 2012-01-13 23:12:32 +00:00
wiz
c18fbdcf42 New sentence, new line. Use more markup. Bump date for previous. 2012-01-13 23:09:51 +00:00
macallan
be47469bba document some rasops_info flags that have been added recently ( and not so
recently )
2012-01-13 16:50:28 +00:00
macallan
19ea84bf71 document recent changes 2012-01-13 16:06:20 +00:00
wiz
d6829e5b30 Bump date for previous. Move RCS Id to top of file. 2012-01-02 18:07:21 +00:00
rkujawa
5ec5041c48 Correct the include path. 2012-01-02 15:41:51 +00:00
rmind
32d19c916b Amend previous. 2011-12-23 20:53:31 +00:00
rmind
40947a78e4 Sync with reality a little. 2011-12-23 20:51:50 +00:00
wiz
707b092c0c New sentence, new line. Fix some markup. Bump date for previous. 2011-12-17 21:25:12 +00:00
wiz
1a45da71c8 Use more markup. Bump date for previous. 2011-12-17 21:24:40 +00:00
tls
6e1dd068e9 Separate /dev/random pseudodevice implemenation from kernel entropy pool
implementation.  Rewrite pseudodevice code to use cprng_strong(9).

The new pseudodevice is cloning, so each caller gets bits from a stream
generated with its own key.  Users of /dev/urandom get their generators
keyed on a "best effort" basis -- the kernel will rekey generators
whenever the entropy pool hits the high water mark -- while users of
/dev/random get their generators rekeyed every time key-length bits
are output.

The underlying cprng_strong API can use AES-256 or AES-128, but we use
AES-128 because of concerns about related-key attacks on AES-256.  This
improves performance (and reduces entropy pool depletion) significantly
for users of /dev/urandom but does cause users of /dev/random to rekey
twice as often.

Also fixes various bugs (including some missing locking and a reseed-counter
overflow in the CTR_DRBG code) found while testing this.

For long reads, this generator is approximately 20 times as fast as the
old generator (dd with bs=64K yields 53MB/sec on 2Ghz Core2 instead of
2.5MB/sec) and also uses a separate mutex per instance so concurrency
is greatly improved.  For reads of typical key sizes for modern
cryptosystems (16-32 bytes) performance is about the same as the old
code: a little better for 32 bytes, a little worse for 16 bytes.
2011-12-17 20:05:38 +00:00
njoly
2291fd1fba Kill extra El macro. 2011-12-09 10:58:51 +00:00
jym
0d4c568bb2 KAUTH_GENERIC_CANSEE is no more. 2011-12-04 23:59:25 +00:00
jym
bdb161bba3 GETPARAMS => GETPARAM
SETPARAMS => SETPARAM
2011-12-04 21:52:37 +00:00
jym
f3effc5ec2 Improvements in secmodel(9). Document secmodel_register(9), _deregister(9)
and _eval(9).

Add secmodel_extensions(9), and indicate the new sysctl(7) to let
ordinary users control the CPU affinity (user_set_cpu_affinity).
2011-12-04 21:08:37 +00:00
jym
d96481c6de - add the bool type for IMMEDIATE flag.
- minor tweak to the handler example: it leaks 't' (on stack)
  when passed to sysctl_lookup(9), as it copyout its content via
  sysctl_data. That would not be the case if CTLFLAG_IMMEDIATE flag
  was set for this node but the example does not preclude that.
2011-12-04 18:34:20 +00:00
tls
7db676852a Add (links for) missing "cross-references" from cprng(9). Some of the
functions replaced by cprng were never documented at all.
2011-11-29 03:40:41 +00:00
wiz
c9317429b9 Spelling. 2011-11-28 23:29:45 +00:00
wiz
b85c6e9d1b Whitespace fixes; new sentence, new line; better macro usage.
Sort SEE ALSO.
2011-11-28 23:27:59 +00:00
tls
2a139c3401 Add cprng(9) manual page, remove arc4random(9) manual page 2011-11-28 20:19:25 +00:00
jmcneill
f3aef68ba3 update audio(9) docs for audiomp changes 2011-11-23 23:11:56 +00:00
jym
0cbbdfa92d pool_cache_sethiwat(9), pool_cache_setlowat(9), pool_cache_sethardlimit(9) 2011-11-15 00:50:55 +00:00
jym
13558246e2 Document pool_cache_sethardlimit(9), the faithful friend of
pool_sethardlimit(9).
2011-11-15 00:32:34 +00:00
jym
1e8ad6eb02 pool_sethardlimit.9 => pool.9 2011-11-15 00:19:42 +00:00
jym
f83fbb4ade Document pool_sethardlimit. 2011-11-14 02:38:05 +00:00
wiz
156fd028ba Remove trailing whitespace. New sentence, new line. 2011-11-08 10:56:59 +00:00
jym
28ecaa21fd Small improvements to kauth(9). 2011-11-08 00:55:53 +00:00
wiz
f5088175d6 Fix typo, try to improve Nd. 2011-11-01 23:18:07 +00:00
wiz
d3abb97c4a Casing. 2011-11-01 23:17:59 +00:00
yamt
30007d8b8f document skpc 2011-11-01 13:36:15 +00:00
yamt
e9ab523b8a document scanc 2011-11-01 13:33:05 +00:00
jruoho
0b7b86c410 Note briefly what MSRs are. Requested by wiz@. 2011-10-28 07:23:16 +00:00
wiz
987d3d3176 Sort SEE ALSO. 2011-10-27 07:23:23 +00:00
jruoho
67fcddd627 Revert the revision 1.5 in cpufreq(9). Instead, document that the KPI can
not be used before interrupts have been enabled. Suggested by macallan@.
2011-10-27 05:25:07 +00:00
jruoho
32b5e91691 Also mention rdtsc() in passing. 2011-10-25 05:41:33 +00:00
jruoho
5c8806b7c2 Xref rdmsr(9). 2011-10-25 05:04:33 +00:00
jruoho
49124f6222 Briefly document the basic RDMSR/WRMSR functions. 2011-10-25 05:03:55 +00:00
yamt
a22529c8e8 document ucas 2011-10-24 07:31:31 +00:00
yamt
f2ae74d707 - document RESCHED_KPREEMPT
- "Specifically" -> "Typically" in the paragraph which says what this
  function can do, because they are merely examples.
2011-10-24 07:30:29 +00:00
yamt
fe2648528f update the description of the priority argument. 2011-10-24 07:27:09 +00:00
yamt
60b270881f - document XC_HIGHPRI
- explicitly note that xc_wait requires thread context.
2011-10-24 07:25:51 +00:00
njoly
c7188eceb8 Use .In macro. 2011-10-20 12:14:12 +00:00
wiz
9ec9f2859c Use Aq instead of \*[Lt]...\*[Gt] 2011-10-20 10:36:42 +00:00
jruoho
1e1471bd00 Xref mstohz(9) and tvtohz(9) with each other. 2011-10-20 09:31:00 +00:00
jruoho
5d9e77ad94 Do not use xcall(9) in cpufreq_register(9), as it requires kthreads to be
running and may impose hacks like config_interrupts(9) in the backend.
2011-10-20 06:48:24 +00:00
jruoho
288ab9d2db Note that manually loaded modules are not auto-unloaded. 2011-10-18 14:12:04 +00:00
jruoho
987b86de6d Xref i2cscan(8). 2011-10-15 16:35:45 +00:00
wiz
6df1df0810 Remove superfluous Pp. 2011-10-06 08:59:01 +00:00
jruoho
6f8d5ab1c7 Add kcpuset(9). Ok rmind@. 2011-10-06 05:23:39 +00:00
njoly
3a909f7545 There's no stand alone vpanic.9 man page. 2011-09-30 15:47:20 +00:00
jruoho
5647e2ae42 Note the order of the dummy boolean states. 2011-09-30 04:21:17 +00:00
christos
ce9eaca580 add vpanic 2011-09-29 20:55:49 +00:00
wiz
702b53cc2e Add missing comma. 2011-09-28 11:50:42 +00:00
jruoho
0e33087b6d Bump date and add one missing note. 2011-09-28 11:42:00 +00:00
jruoho
a179648071 Add a simple cpufreq(9).
This is slightly improved version presented on tech-kern@ with proper
locking and few additional functions, mainly required for ioctl(9)/cpuctl(8).
2011-09-28 10:55:46 +00:00
jym
586001f7c7 Document new *ASSERTMSG() prototype, and update KASSERT(9).
See also
http://mail-index.netbsd.org/tech-kern/2011/09/07/msg011427.html
2011-09-27 00:36:49 +00:00
jym
b8647b8e93 Update list of algorithm identifiers available in opencrypto(9). 2011-09-16 22:27:36 +00:00
wiz
7915776d56 Remove trailing whitespace. 2011-09-05 18:21:29 +00:00
dyoung
7add4c1ae4 Update vmem(9). Changes to the implementation and usage are following,
soon.
2011-09-02 22:07:33 +00:00
dyoung
7d12941ccd Describe pci_bus_devorder(9).
TBD: symbolic link pci_bus_devorder.9 -> pci.9.
2011-08-25 02:01:32 +00:00
wiz
098681c432 Bump date for previous. 2011-08-23 22:14:51 +00:00
dyoung
64311e1f9d Introduce a couple of new constants, VMEM_ADDR_MIN (the least possible
address in a vmem(9) arena, 0) and VMEM_ADDR_MAX (the maximum possible
address, currently 0xFFFFFFFF).  Modify several boundary conditions so
that a vmem(9) arena can allocate ranges including VMEM_ADDR_MAX.
Update documentation and tests.

These changes pass the tests in sys/kern/subr_vmem.c.  To compile the
and run the test program, run "cd sys/kern/ && gcc -DVMEM_SANITY -o
subr_vmem ./subr_vmem.c && ./subr_vmem".
2011-08-23 22:00:57 +00:00
rmind
a0ffc02ab8 Rename slightly misleading KTHREAD_JOINABLE to KTHREAD_MUSTJOIN. 2011-08-07 14:03:15 +00:00
rmind
83fa217ed7 Fix .Xr to membar_ops(3), not membar(9). Spotted by wiz@. 2011-08-07 12:29:24 +00:00
wiz
5303ff6102 Whitespace nits. 2011-08-02 10:17:35 +00:00
rmind
d06d3e7845 Add pserialize(9) manual page. 2011-07-30 18:19:04 +00:00
jym
175b1728c7 And struct cfdata => cfdata_t too... 2011-07-23 16:04:35 +00:00
jym
c3f2a905be struct device => device_t. Bump date. 2011-07-23 16:02:15 +00:00
jruoho
0ead7c269a Xref delay(9) and kpause(9) with each other. 2011-07-20 05:20:54 +00:00
dholland
6afd4e5087 typo 2011-07-18 04:39:28 +00:00
joerg
3eb244d801 Retire varargs.h support. Move machine/stdarg.h logic into MI
sys/stdarg.h and expect compiler to provide proper builtins, defaulting
to the GCC interface. lint still has a special fallback.
Reduce abuse of _BSD_VA_LIST_ by defining __va_list by default and
derive va_list as required by standards.
2011-07-17 20:54:30 +00:00
hannken
49511bba25 Change VOP_BWRITE() to take a vnode as its first argument like all other
VOPs do.  Layered file systems no longer have to modify bp->b_vp and run
into trouble when an async VOP_BWRITE() uses the wrong vnode.

- change all occurences of VOP_BWRITE(bp) to VOP_BWRITE(bp->b_vp, bp).
- remove layer_bwrite().
- welcome to 5.99.55

Adresses PR kern/38762 panic: vwakeup: neg numoutput

No objections from tech-kern@.
2011-07-11 08:27:37 +00:00
wiz
5002f12c95 Sort error descriptions. 2011-07-09 07:57:53 +00:00
dyoung
acbb3ce8b3 Describe some of the expected return codes from bus_dmamap_load(9). 2011-07-08 22:38:08 +00:00
wiz
837dee575f Remove trailing whitespace, use Er for errors, break some lines to avoid
unintended markup.
2011-07-08 19:40:24 +00:00
dyoung
5fc6496c2d Describe bus_space_tag_create(9) and bus_space_tag_destroy(9) for
implementing bus spaces in MI code.

(This documentation may be several hours ahead of the implementation,
sorry.)
2011-07-06 21:36:16 +00:00
dyoung
9063212b84 Document bus_space_reserve(9), bus_space_reserve_subregion(9),
bus_space_release(9), bus_space_reservation_map(9),
bus_space_reservation_unmap(9), bus_space_reservation_addr(9),
bus_space_reservation_size(9), bus_space_handle_is_equal(9).
2011-07-06 18:27:31 +00:00
dyoung
92f34ea0d6 Bump date. 2011-07-01 22:06:19 +00:00
dyoung
1832697851 Switch machine/bus.h references to machine/bus_defs.h and
machine/bus_funcs.h references.
2011-07-01 22:05:28 +00:00
dyoung
5c997b3e12 Reference <sys/bus.h> instead of <machine/bus.h>. 2011-07-01 17:34:44 +00:00
wiz
4cbd24b23f dependant -> dependent 2011-06-30 20:09:15 +00:00
wiz
8e12ffad8d Mark up NULL. 2011-06-14 07:49:09 +00:00
rmind
3f1c6aa712 Update getnewvnode(9) description. 2011-06-14 00:56:02 +00:00
rmind
60e221031b VOP_LEASE(9) was removed long ago. Misc improvement. 2011-06-14 00:22:45 +00:00
rmind
1d2a79ab46 Describe ubc_purge(9). 2011-06-14 00:19:20 +00:00
rmind
15de01ccb7 Xr uvm_km(9) 2011-06-14 00:18:00 +00:00
nonaka
a5706f7ee2 Removed non-existent wsfont_getflg() functions.
Const'fy name in struct wsdisplay_font.
Fixed some typo.
2011-06-13 15:24:21 +00:00
rmind
3b0ab829be Sync (mostly, not fully) uvm_km(9) and uvm_map(9) man pages with reality. 2011-06-03 18:43:38 +00:00
wiz
203a6ec972 Sort SEE ALSO. 2011-06-03 08:06:54 +00:00
yamt
ea2d998dd1 correct the section number of membar_producer. noted by wiz@ 2011-06-03 04:33:31 +00:00
yamt
82bfd3cade mention memory barriers necessary for non-interlocked adaptive mutex release. 2011-06-02 00:58:26 +00:00
dyoung
bc07e228a2 Describe the arguments to ctor and dtor. 2011-06-01 20:49:22 +00:00
jruoho
29ca3fb160 Fix a typo. 2011-06-01 11:19:19 +00:00
rmind
7524727f91 Split parts of uvm(9) into uvm_km(9) and uvm_map(9) man pages.
OK mrg@
2011-06-01 02:22:18 +00:00
dyoung
9a37c59cd7 MI drivers should #include <sys/bus.h> not <machine/bus.h>. 2011-05-30 01:48:40 +00:00
drochner
5fafa9c424 -in the descriptor for encryption xforms, split the "blocksize" field
into "blocksize" and "IV size"
-add an "reinit" function pointer which, if set, means that the xform
 does its IV handling itself and doesn't want the default CBC handling
 by the framework (poor name, but left that way to avoid unecessary
 differences)
This syncs with Open/FreeBSD, purpose is to allow non-CBC transforms.
Refer to ivsize instead of blocksize where appropriate.
(At this point, blocksize and ivsize are identical.)
2011-05-23 13:46:54 +00:00
wiz
ee4a63b058 Improve wording. 2011-05-19 08:55:01 +00:00
rmind
95ea6d26ab Re-implement kthread_join(9), so that it actually works (hi haad@). 2011-05-19 03:07:29 +00:00
wiz
5f70e190b1 Improve wording. 2011-04-28 17:09:19 +00:00
wiz
bd723a1420 New sentence, new line. 2011-04-28 17:08:29 +00:00
wiz
901cdb562b Typo fix. 2011-04-28 12:22:35 +00:00
wiz
eafacad922 Bump date for uvm_swap_stats() removal; remove superfluous Pp. 2011-04-27 06:02:03 +00:00
rmind
fe41737f5c Remove public uvm_swap_stats() routine, keep it internal. 2011-04-27 00:35:52 +00:00
hannken
87522af425 Change vflushbuf() to return an error if a synchronous write fails.
Welcome to 5.99.51.
2011-04-26 11:32:38 +00:00
wiz
d154cf1438 Add missing word. 2011-04-25 22:31:12 +00:00
wiz
235dacfc64 Sort SEE ALSO, sort errors. 2011-04-25 22:08:18 +00:00
wiz
3d72e50534 Sort SEE ALSO. 2011-04-08 08:49:19 +00:00
jruoho
bacb261ac9 Xref param(3). 2011-04-08 07:55:04 +00:00
jruoho
d21d7bda46 Put back the example (removed in the revision 1.3). 2011-04-08 06:55:14 +00:00
jruoho
789c04236c Note also KASSERTMSG(). Small markup changes. 2011-04-06 05:40:18 +00:00
dyoung
38c5ac17f7 Update manual page for constification of pci_attach_args. 2011-04-05 14:57:33 +00:00
jruoho
bb2c5893fc Remove a duplicate word, .Fn for functions, .Vt. 2011-03-30 21:40:01 +00:00
jruoho
5fe4360942 Fix xref; security(8) -> security(7). 2011-03-18 16:18:45 +00:00
jruoho
231352d485 Remove the bulk "this section describes places within [...]" -paragraph. 2011-03-17 10:02:54 +00:00
jruoho
f5d26066d3 Tidy up the SEE ALSO section. Namely, do not duplicate a big list of xrefs
that are already used in the body of the text.
2011-03-13 05:03:21 +00:00
jruoho
66853c1034 Xref hpet(4) and hz(9). 2011-03-13 04:57:21 +00:00
wiz
d377a246ac Fix typos. 2011-03-12 13:25:41 +00:00
jruoho
077cbf0f3c Add x86/tsc(9). 2011-03-11 19:50:33 +00:00
wiz
839b4739f5 Add comma in enumeration. 2011-02-27 06:25:07 +00:00
ahoka
2b6ee22130 Import the Flash and NAND subsytem code contributed by the University
of Szeged, Hungary.

The commit includes:
 - Flash layer, which gives a common API to access flash devices
 - NAND controller subsystem for the flash layer
 - An example OMAP driver which is used on BeagleBoard or alike ARM boards
2011-02-26 18:07:13 +00:00
jym
b7e3c0fc0b Notify that the file system has to be mounted first before modules can
be loaded from it.

ok pgoyette@
2011-02-13 16:50:16 +00:00
rmind
f79a70df93 vn_lock: describe flags, remove reference to lockmgr. 2011-01-30 07:04:48 +00:00
rmind
e5f51d8e44 Sync man page with reality. 2011-01-30 07:02:23 +00:00
wiz
16f356de90 Link kprintf(9) to device_printf(9). For David. 2011-01-27 14:48:36 +00:00
wiz
17d601176d Fix typo. 2011-01-26 09:53:20 +00:00
yamt
b5ca7f5a5b - add some random notes
Basically, KASSERT() should be used for light-weight checks and
     KDASSERT() should be used for heavier ones.

     Callers should not rely on the side effects of expression because,
     depending on the kernel compile options mentioned above, expression might
     not be evaluated at all.

- Xr options(4)
- bump date
2011-01-25 23:46:48 +00:00
enami
c25b258560 roundup2(x, y) does not assume that x is power of 2, but y is. 2011-01-24 10:22:15 +00:00
dyoung
609720ff85 Describe device_printf(9).
XXX Need symbolic link device_printf.9 -> kprintf.9.
2011-01-21 17:51:19 +00:00
dyoung
979fccad2b In the EXAMPLES section, use device_t and accessors instead of struct
device.
2011-01-14 18:34:44 +00:00
jnemeth
20fdec7661 Update module_autoload to say that a .plist file will be loaded, and if
that .plist contains noautoload=true then the system will refuse to load
the module.
2011-01-09 05:05:10 +00:00
jym
883680496d CONSIDERATION => CONSIDERATIONS, to be on par with the rest of man pages. 2011-01-08 18:07:14 +00:00
jmcneill
2295a2cf7a cdevsw/bdevsw d_type is now d_flag 2011-01-05 17:02:03 +00:00
jruoho
70a8aa1e92 Xref __insn_barrier(3) and mb(9) with each other. 2011-01-02 07:14:02 +00:00
wiz
06fb101b70 Improve wording. 2010-12-22 09:08:09 +00:00
jruoho
dafc3c9d20 Note vm.user_va0_disable. 2010-12-21 08:53:25 +00:00
jruoho
91e230c6b8 Fix xref; module(4) -> module(7). 2010-12-14 16:23:59 +00:00
jruoho
4cda92a2b7 Note specifically that kernel modules can be loaded at securelevel 0.
In addition, some markup improvements.
2010-12-14 09:09:52 +00:00
jruoho
05a9f55544 Xref module(4). 2010-12-13 10:07:46 +00:00
cegger
e758ac3c49 ossaudio(3) -> compat/ossaudio and soundcard.h
suggested by Ian Hibbert
2010-12-11 17:32:14 +00:00
cegger
7e86c61f2b add pci(4) and ossaudio(3)
yes, be careful. They can easily conflict. Actually when this happens kdump
fails compiling due to 'duplicate case value'
2010-12-11 17:15:03 +00:00
wiz
05859157e6 Remove boilerplate in CODE REFERENCES on file paths.
Describe in intro(9) how to read paths in the CODE REFERENCES section.
2010-12-02 12:54:13 +00:00
dholland
fab6ef2374 Document pathbuf_assimilate, used by nfsd to move pathnames from mbufs to
pathbufs. It is like pathbuf_create but takes responsibility for the path
buffer passed in. (Because this is asymmetric, it carries an extra risk
of error and therefore shouldn't be used except where it's really needed.)
2010-11-30 10:32:46 +00:00
jnemeth
22405528a4 Rename the autoloaded property list from <module>.prop to <module>.plist
as discussed on tech-kern.
2010-11-28 00:26:38 +00:00
dholland
4756f11bab bump date for previous (thanks jnemeth) 2010-11-19 07:44:00 +00:00
dholland
8f6ed30d57 Introduce struct pathbuf. This is an abstraction to hold a pathname
and the metadata required to interpret it. Callers of namei must now
create a pathbuf and pass it to NDINIT (instead of a string and a
uio_seg), then destroy the pathbuf after the namei session is
complete.

Update all namei call sites accordingly. Add a pathbuf(9) man page and
update namei(9).

The pathbuf interface also now appears in a couple of related
additional places that were passing string/uio_seg pairs that were
later fed into NDINIT. Update other call sites accordingly.
2010-11-19 06:44:33 +00:00
dholland
4bdbe49cd3 The "active" and "inactive" members of struct uvmexp were removed in
rev. 1.118 of uvm_extern.h with the merge of yamt-pdpolicy in 2006. So
they shouldn't still be documented as part of the structure. Bump date.
2010-11-08 02:56:12 +00:00
wiz
775a0dd1d6 Sort SEE ALSO. 2010-10-29 09:34:03 +00:00
jruoho
dc49246760 Xref CTASSERT(9). 2010-10-28 09:48:11 +00:00
rmind
63012b51f1 NPF checkpoint:
- Add support for bi-directional NAT and redirection / port forwarding.
- Finish filtering on ICMP type/code and add filtering on TCP flags.
- Add support for TCP reset (RST) or ICMP destination unreachable on block.
- Fix a bunch of bugs; misc cleanup.
2010-09-16 04:53:27 +00:00
ahoka
812c293086 add a note on IPL and spinning mutexes
TODO: explain when the IPL will be restored
2010-09-14 21:35:53 +00:00
jnemeth
3a12eae410 note that MODULE_CLASS_SECMODEL is also automatically deregistered when being unloaded 2010-08-25 06:45:35 +00:00
rmind
3b6fdb92e5 Move npf.conf(5-8) into the correct section, hence npf.conf(5). 2010-08-24 23:55:04 +00:00
jruoho
dfca43fdb9 Few small nits. 2010-08-24 05:34:15 +00:00
wiz
578d32c924 Add more articles and more formatting. 2010-08-22 20:36:09 +00:00
rmind
2e6f2099c6 Import NPF - a packet filter. Some features:
- Designed to be fully MP-safe and highly efficient.

- Tables/IP sets (hash or red-black tree) for high performance lookups.

- Stateful filtering and Network Address Port Translation (NAPT).
  Framework for application level gateways (ALGs).

- Packet inspection engine called n-code processor - inspired by BPF -
  supporting generic RISC-like and specific CISC-like instructions for
  common patterns (e.g. IPv4 address matching).  See npf_ncode(9) manual.

- Convenient userland utility npfctl(8) with npf.conf(8).

NOTE: This is not yet a fully capable alternative to PF or IPFilter.
Further work (support for binat/rdr, return-rst/return-icmp, common ALGs,
state saving/restoring, logging, etc) is in progress.

Thanks a lot to Matt Thomas for various useful comments and code review.
Aye by: board@
2010-08-22 18:56:18 +00:00
pgoyette
7626bd9b32 Put a valid date here - no more placeholder. 2010-08-21 13:34:43 +00:00
pgoyette
4a743ad47d Define a set of new kernel locking primitives to implement the recursive
kernconfig_mutex.  Update module subsystem to use this mutex rather than
its own internal (non-recursive) mutex.  Make module_autoload() do its
own locking to be consistent with the rest of the module_xxx() calls.
Update module(9) man page appropriately.

As discussed on tech-kern over the last few weeks.

Welcome to NetBSD 5.99.39 !
2010-08-21 13:17:31 +00:00
wiz
0bba56f8fb Add x86 to Dt. 2010-08-21 10:38:51 +00:00
jruoho
f7b06c8780 Move nmi(9) to the correct category. 2010-08-21 10:32:35 +00:00
wiz
e02e23b4b6 Uppercase Dt argument. 2010-08-21 10:13:33 +00:00
jruoho
07deeab629 Add x86_msr_xcall(9). 2010-08-21 10:11:34 +00:00
pgoyette
c6f8bef851 Note that, for MODULE_CLASS_SECMODEL, the class is not ignored. Rather,
we will automatically call secmodel_register() for these modules.
2010-08-18 01:56:45 +00:00
wiz
3ed879f06c filesystem -> file system 2010-08-17 06:44:25 +00:00
jnemeth
4de9b94cfd A few corrections:
- the return value from modcmd(MODULE_CMD_FINI) is not ignored;
  the module is only unloaded if the return value is 0
- if loading a module fails, the dependents won't be unloaded until
  the auto_unload timer goes off
- clarify that <module>.prop is merged with the dictionary passed
  in by modctl()
- clarify that other parts of the kernel shouldn't normally call
  module_unload()
- add some more source references and mention routines expected to
  be supplied by architecture dependent code
2010-08-17 04:09:07 +00:00
wiz
efa04f9763 Sort sections, remove trailing whitespace. 2010-08-14 17:49:12 +00:00
pgoyette
f385c3dade Add an Authors section 2010-08-14 17:06:58 +00:00
wiz
ffe6b7cdc1 We usually write "file system", so change it to this version here.
Also, fix a typo, and remove a line only consisting of ".Fn ".
2010-08-11 20:10:55 +00:00
pgoyette
7a8c7dc74a Add documentation for the various module system initialization routines. 2010-08-11 18:20:09 +00:00
wiz
032d0f9a13 Remove trailing whitespace, and mark up file name suffix. 2010-08-08 15:23:28 +00:00
pgoyette
f792e9e485 Filling in a few more gaps. 2010-08-08 14:26:22 +00:00
pgoyette
6241e2c44e Add documentation for module_find_section() 2010-08-07 22:21:30 +00:00
jruoho
33d83c93fd Wording, markup. 2010-08-07 16:41:34 +00:00
jruoho
2016543bde Don't use complete prototypes in FUNCTIONS. But use standard section headers. 2010-08-07 16:15:47 +00:00
wiz
fe39a07b5f Fix typo. 2010-08-04 18:52:49 +00:00
jruoho
da5cba2978 Improvements to wording, grammar, and markup. 2010-08-04 05:51:20 +00:00
pgoyette
01a1e3e5d6 Unimplemented modcmd() routines should return ENOTTY, not zero. 2010-07-31 13:27:29 +00:00
pgoyette
fb03fbed90 Improve markup, add documentation for the module's modcmd() interface 2010-07-31 13:20:08 +00:00
pgoyette
4d71a95956 Crap - another typo. 2010-07-31 03:44:33 +00:00
pgoyette
44b6cc4347 Minor grammar nits. 2010-07-31 03:43:00 +00:00
pgoyette
31f0dbbb9e Make a first pass at documenting the module(9) subsystem.
XXX This is by no means complete, but it is a beginning.
2010-07-31 03:14:05 +00:00
jruoho
80ac55757e Remove EXAMPLES-title (the example was not really an example). Use .Xr for
cpu_idle(9) instead of .Fn.
2010-07-31 02:12:20 +00:00
jruoho
1a6962b48f Document the stack macros from <sys/param.h>. 2010-07-30 09:12:58 +00:00
jruoho
e31d462f48 Document the fine nullop() family of dummy functions. 2010-07-25 21:05:13 +00:00
hannken
1664eae7f3 Using vfinddev() leads to vnode races as it returns an unreferenced
vnode that may disappear before the caller has a chance to reference it.

Reference the vnode while the specfs cache is locked.

Welcome to 5.99.37.

No objections on tech-kern.
2010-07-21 09:06:37 +00:00
hannken
e698a5d246 Using cache_revlookup() leads to vnode races as it returns an unreferenced
vnode that may disappear before the caller has a chance to reference it.

Reference the vnode while the name cache is locked.

No objections on tech-kern.
2010-07-21 09:01:35 +00:00
jruoho
02b671da36 Use .Xr for Xrefs. 2010-07-06 22:29:29 +00:00
cegger
a63798ea7c Turn PMAP_NOCACHE into MI flag.
Add MI flags PMAP_WRITE_COMBINE, PMAP_WRITE_BACK, PMAP_NOCACHE_OVR.
Update pmap(9) manpage.

hppa: Remove MD PMAP_NOCACHE flag as it exists as MI flag
mips: Rename MD PMAP_NOCACHE to PGC_NOCACHE.

x86: Implement new MI flags using Page-Attribute Tables.
x86: Implement BUS_SPACE_MAP_PREFETCHABLE.

Patch presented on tech-kern@:
http://mail-index.netbsd.org/tech-kern/2010/06/30/msg008458.html

No comments on this last version.
2010-07-06 20:50:33 +00:00
wiz
58c4d50e83 Change xref from pfind(9) to proc_find(9). Bump date. 2010-07-01 15:12:31 +00:00