Commit Graph

233 Commits

Author SHA1 Message Date
mrg 46deb749ba document bus_dmatag_subregion(9) and bus_dmatag_destroy(9). 2007-02-21 21:13:01 +00:00
yamt 38384421f9 need_resched -> cpu_need_resched. 2007-02-17 17:18:31 +00:00
yamt 277af7c2c3 remove cpu_idle.9. it has not been available on trunk. 2007-02-17 14:32:23 +00:00
hannken 198beb0314 Make fstrans(9) the default helper for file system suspension.
Replaces the now obsolete vn_start_write()/vn_finished_write().
2007-02-16 17:23:53 +00:00
tron 4a83339899 Remove entries for rw_owned(9) again. The set lists were incorrect,
not this "Makefile".
2007-02-15 17:04:04 +00:00
tron 3e0f4f02f6 Create symbolic links for rw_owned(9). 2007-02-15 16:44:41 +00:00
skrll 8694ada1fe Sort some entries. 2007-02-15 07:30:07 +00:00
ad d399d56922 Fix up MLINKS for previous. From nick@. 2007-02-11 18:49:18 +00:00
ad 6f86141195 Add mb/rwlock/condvar/mutex section 9 manual pages. 2007-02-11 16:16:09 +00:00
hannken facd1f65cb Add and update documentation for fstrans(9) file system suspension helper.
wiz?
2007-01-21 15:42:36 +00:00
elad 190f747fee Add a memoryallocators(9) man-page to give a short summary of memory
allocators available in the kernel.

Tons of input from YAMAMOTO Takashi, thanks!
2007-01-07 15:37:51 +00:00
yamt 5d51c3ca27 document splraiseipl and makeiplcookie. 2006-12-21 16:01:13 +00:00
dyoung a25eaede91 Add a source-address selection policy mechanism to the kernel.
Also, add ioctls SIOCGIFADDRPREF/SIOCSIFADDRPREF to get/set preference
numbers for addresses.  Make ifconfig(8) set/display preference
numbers.

To activate source-address selection policies in your kernel, add
'options IPSELSRC' to your kernel configuration.

Miscellaneous changes in support of source-address selection:

        1 Factor out some common code, producing rt_replace_ifa().

        2 Abbreviate a for-loop with TAILQ_FOREACH().

        3 Add the predicates on IPv4 addresses IN_LINKLOCAL() and
          IN_PRIVATE(), that are true for link-local unicast
          (169.254/16) and RFC1918 private addresses, respectively.
          Add the predicate IN_ANY_LOCAL() that is true for link-local
          unicast and multicast.

        4 Add IPv4-specific interface attach/detach routines,
          in_domifattach and in_domifdetach, which build #ifdef
          IPSELSRC.

See in_getifa(9) for a more thorough description of source-address
selection policy.
2006-11-13 05:13:38 +00:00
yamt bf894997ce document vmem_xalloc/xfree. 2006-11-04 12:55:28 +00:00
yamt 4194eaeebd document vmem. 2006-10-22 11:14:52 +00:00
rpaulo f3330397f0 Modular (I tried ;-) TCP congestion control API. Whenever certain conditions
happen in the TCP stack, this interface calls the specified callback to
handle the situation according to the currently selected congestion
control algorithm.
A new sysctl node was created: net.inet.tcp.congctl.{available,selected}
with obvious meanings.
The old net.inet.tcp.newreno MIB was removed.
The API is discussed in tcp_congctl(9).

In the near future, it will be possible to selected a congestion control
algorithm on a per-socket basis.

Discussed on tech-net and reviewed by <yamt>.
2006-10-09 16:27:07 +00:00
cube 007b992d97 Synchronise documentation with code. E.g., config_search is no more, but
instead you have config_search_{loc,ia}.  Add documentation for
config_finalize_regsiter, too.  Mostly fixes PR#32106 by Gavan Fantom, as I
think the cfdriver_* and cfattach_* stuff should be documented too, but I'm
not entirely sure where yet.
2006-10-07 17:26:24 +00:00
pooka d6ced1d27a fix slight ooops in previous 2006-10-04 12:39:05 +00:00
pooka ecf7acf05b and lo, the uvm_coredump() peril was no more (since almost 5 years ago) 2006-10-04 11:27:45 +00:00
wiz da7878157c Make links from ieee80211(9) to pages for all included functions. 2006-09-17 21:46:39 +00:00
yamt f349782fa8 add workqueue_destroy. 2006-09-16 11:15:50 +00:00
elad a416017103 Add a man-page for secmodel_overlay(9). 2006-09-16 08:37:33 +00:00
elad 85e66157f0 Add a man-page for secmodel_bsd44, describing a bit the concepts of
super-user and securelevel.

The securelevel part was compiled of text from both init(8) and OpenBSD's
securelevel(7), and brought in-sync with what we really do.
2006-09-15 20:01:38 +00:00
elad 5f7169ccb1 First take at security model abstraction.
- Add a few scopes to the kernel: system, network, and machdep.

- Add a few more actions/sub-actions (requests), and start using them as
  opposed to the KAUTH_GENERIC_ISSUSER place-holders.

- Introduce a basic set of listeners that implement our "traditional"
  security model, called "bsd44". This is the default (and only) model we
  have at the moment.

- Update all relevant documentation.

- Add some code and docs to help folks who want to actually use this stuff:

  * There's a sample overlay model, sitting on-top of "bsd44", for
    fast experimenting with tweaking just a subset of an existing model.

    This is pretty cool because it's *really* straightforward to do stuff
    you had to use ugly hacks for until now...

  * And of course, documentation describing how to do the above for quick
    reference, including code samples.

All of these changes were tested for regressions using a Python-based
testsuite that will be (I hope) available soon via pkgsrc. Information
about the tests, and how to write new ones, can be found on:

	http://kauth.linbsd.org/kauthwiki

NOTE FOR DEVELOPERS: *PLEASE* don't add any code that does any of the
following:

  - Uses a KAUTH_GENERIC_ISSUSER kauth(9) request,
  - Checks 'securelevel' directly,
  - Checks a uid/gid directly.

(or if you feel you have to, contact me first)

This is still work in progress; It's far from being done, but now it'll
be a lot easier.

Relevant mailing list threads:

http://mail-index.netbsd.org/tech-security/2006/01/25/0011.html
http://mail-index.netbsd.org/tech-security/2006/03/24/0001.html
http://mail-index.netbsd.org/tech-security/2006/04/18/0000.html
http://mail-index.netbsd.org/tech-security/2006/05/15/0000.html
http://mail-index.netbsd.org/tech-security/2006/08/01/0000.html
http://mail-index.netbsd.org/tech-security/2006/08/25/0000.html

Many thanks to YAMAMOTO Takashi, Matt Thomas, and Christos Zoulas for help
stablizing kauth(9).

Full credit for the regression tests, making sure these changes didn't break
anything, goes to Matt Fleming and Jaime Fournier.

Happy birthday Randi! :)
2006-09-08 20:58:56 +00:00
wiz 3629da0138 Fix todr(9) MLINKS line. 2006-09-06 18:15:35 +00:00
gdamore 43de604779 time.9 renamed to time_second.9. various updates to reflect API changes. 2006-09-06 18:04:30 +00:00
gdt 306758ad1c man pages contributed by Igor Sobrado. 2006-07-27 00:00:56 +00:00
elad 71cef668d9 first take at veriexec(9) man page, finally documenting some more
internals.
2006-07-25 21:16:16 +00:00
elad b5d09ef065 okay, since there was no way to divide this to two commits, here it goes..
introduce fileassoc(9), a kernel interface for associating meta-data with
files using in-kernel memory. this is very similar to what we had in
veriexec till now, only abstracted so it can be used more easily by more
consumers.

this also prompted the redesign of the interface, making it work on vnodes
and mounts and not directly on devices and inodes. internally, we still
use file-id but that's gonna change soon... the interface will remain
consistent.

as a result, veriexec went under some heavy changes to conform to the new
interface. since we no longer use device numbers to identify file-systems,
the veriexec sysctl stuff changed too: kern.veriexec.count.dev_N is now
kern.veriexec.tableN.* where 'N' is NOT the device number but rather a
way to distinguish several mounts.

also worth noting is the plugging of unmount/delete operations
wrt/fileassoc and veriexec.

tons of input from yamt@, wrstuden@, martin@, and christos@.
2006-07-14 18:41:40 +00:00
skrll 849f87f3e9 Some section 9 man page edits:
- Update ctxsw(9) to reflect reality a little better
	- chooselwp doesn't exist in the kernel so remove the man page.
	- Remove the references to chooseproc which existed briefly.
2006-07-08 17:17:30 +00:00
yamt 54460ad919 document kmem_alloc, kmem_free, kmem_zalloc. 2006-06-25 13:07:49 +00:00
kardel 8830115a72 add microuptime.9 (from FreeBSD) for timecounters 2006-06-24 08:47:19 +00:00
kardel fd0e890da3 include timecounter.9 description 2006-06-24 08:32:17 +00:00
gdamore a5c89047c0 Initial import of bluetooth stack on behalf of Iain Hibbert. (plunky@,
NetBSD Foundation Membership still pending.)  This stack was written by
Iain under sponsorship from Itronix Inc.

The stack includes support for rfcomm networking (networking via your
bluetooth enabled cell phone), hid devices (keyboards/mice), and headsets.

Drivers for both PCMCIA and USB bluetooth controllers are included.
2006-06-19 15:44:33 +00:00
chap 8af3733e5a Document kernel function hashinit/hashdone.
"No[ objections] here." -christos@
2006-06-04 14:45:34 +00:00
elad 97e393b1f1 kill unused man-pages. prompted by Iain Hibbert. 2006-05-16 15:56:15 +00:00
elad 1674cef53d add kauth man-page. 2006-05-14 22:07:22 +00:00
uwe f668cd8f95 G/c properties(9) and links. They are marked as obsolete in the sets
already.
2006-05-14 15:43:42 +00:00
gdamore 1247b1ef2d Add preliminary documentation for DDC and EDID subsystem. 2006-05-11 21:00:18 +00:00
kleink 4e2ab73ea3 Document libkern's bcdtobin(9)/bintobcd(9). 2006-03-11 15:47:09 +00:00
pooka 25833a1352 fdavail is a goner 2006-03-07 17:22:10 +00:00
pooka 9b67fde0e2 document fdclone 2006-02-24 12:47:18 +00:00
macallan 503ed99804 add vcons.9 2006-02-12 23:16:03 +00:00
jmmv 47d8ee4167 Implement options string parsing of the form 'a=b c=d ...'. This will be
initially used by i386's Multiboot support but will be useful in other
situations too (think refactoring mount(2)'s API).
2006-02-03 11:04:46 +00:00
thorpej f69c907605 Add a firmload(9) manual page. 2006-01-17 17:29:28 +00:00
yamt 0541bd8909 add getiobuf.9 2006-01-16 22:32:07 +00:00
xtraeme d9b36aca62 Manpage that explains the i2c framework... from OpenBSD. 2006-01-04 19:14:55 +00:00
matt 3fff2406b3 Update man pages for new coredump interface. 2005-12-24 21:07:05 +00:00
rpaulo b66583facd Fix links for cpu_lwp_fork.9. Pointed out by ghen@ and salo@. 2005-12-21 15:36:38 +00:00
rpaulo 7d7fe4b786 Adapt man pages to ktrace-lwp. 2005-12-20 19:53:14 +00:00