Commit Graph

2216 Commits

Author SHA1 Message Date
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
jruoho
a94ff8e22c Use .Fn instead of .Nm. 2010-07-01 15:06:55 +00:00
jruoho
7965193037 Briefly document proc_find() and pgrp_find(). 2010-07-01 14:54:44 +00:00
jruoho
3cb6211465 Remove the now obsolete pfind(9). 2010-07-01 14:22:12 +00:00
tsutsui
cd9494c03d Add config_mountroot(9) in autoconf(9) man page and LINKS for it. 2010-06-25 15:16:13 +00:00
hannken
1423e65b26 Clean up vnode lock operations pass 2:
VOP_UNLOCK(vp, flags) -> VOP_UNLOCK(vp): Remove the unneeded flags argument.

Welcome to 5.99.32.

Discussed on tech-kern.
2010-06-24 12:58:48 +00:00
hannken
f6c438ba23 Clean up vnode lock operations:
- VOP_LOCK(vp, flags): Limit the set of allowed flags to LK_EXCLUSIVE,
   LK_SHARED and LK_NOWAIT.  LK_INTERLOCK is no longer allowed as it
   makes no sense here.

- VOP_ISLOCKED(vp): Remove the for some time unused return value
  LK_EXCLOTHER.  Mark this operation as "diagnostic only".
  Making a lock decision based on this operation is no longer allowed.

Discussed on tech-kern.
2010-06-24 07:54:46 +00:00
hannken
2c090918c7 Remove the concept of recursive vnode locks by eliminating
vn_setrecurse(), vn_restorerecurse() and LK_CANRECURSE.
Welcome to 5.99.31

Discussed on tech-kern.
2010-06-18 16:29:01 +00:00
jruoho
2ef5124af4 Add FUNCTIONS. List only complete prototypes in SYNOPSIS. Sort SYNOPSIS
according to the appearance in FUNCTIONS. Fix typo; cnm_trap() -> cn_trap().
Remove the .Va typedef struct cnm_state cnm_state_t; in SYNOPSIS. And some
miscellaneous markup improvements.
2010-06-08 19:44:28 +00:00
jruoho
74f7e1dfe4 Offset indent the example. 2010-06-08 19:28:56 +00:00
jruoho
c99ce241db Remove the unnecessary example. 2010-06-08 09:02:55 +00:00
jruoho
b052be6bc7 Xref ilog2(3) and imax(9). 2010-06-08 09:00:22 +00:00
jruoho
0e7140d8d0 Xref ilog2(3). 2010-06-08 08:55:46 +00:00
jruoho
015c6ebc3b Three small markup improvements. 2010-06-08 08:20:37 +00:00
wiz
ae0570abb9 Fix xref. 2010-06-08 07:20:20 +00:00
jruoho
0b44becf58 Ups. Fix wrong filename suffix. 2010-06-08 05:56:58 +00:00
jruoho
b2a0054edc Xref bintime_add(9). 2010-06-08 05:50:01 +00:00
jruoho
6d00e6b5dc Briefly document the bintime_add() family of static inline functions. 2010-06-08 05:40:26 +00:00
jruoho
eb3f5b5845 Don't unnecessarily clutter the SEE ALSO. 2010-06-08 05:20:35 +00:00
jruoho
e5f1d72bb7 Grammar, markup. 2010-06-08 04:08:37 +00:00