Commit Graph

1511 Commits

Author SHA1 Message Date
pooka
f208ab1cd8 boolean_t -> bool 2007-08-08 21:36:43 +00:00
pooka
572974402c krwlock_op_t -> const krw_t 2007-08-08 09:34:40 +00:00
wiz
2d861dae37 Use more markup. Try to improve english. Sort SEE ALSO. 2007-08-07 20:50:39 +00:00
xtraeme
ea44cd3ae2 <wizd> Bump date for previous. 2007-08-07 15:00:09 +00:00
rmind
2e1a7ade3c Sync the manual pages of workqueue(9) interface with the code.
/etc/rc.d/wizd start
2007-08-05 17:57:37 +00:00
pooka
c7d9ec16a7 VFS_MOUNT():
+ nameidata is a goner
  + document dlen (hi dsl!)
2007-07-31 21:39:56 +00:00
alc
9abba19570 kills a few `caddr_t' occurences still present in manpage 2007-07-30 22:48:46 +00:00
rumble
daacba5e07 Be more specific in the description of VOP_READDIR:
- uio->uio_offset must be set to the offset of the next directory entry.
 - each cookie entry points to the next directory entry's offset, not the
   current entry's offset.
 - cookies must be callee allocated with malloc type M_TEMP.
2007-07-30 03:25:50 +00:00
pooka
833194271b update CODE REFERENCES to match new module 2007-07-29 09:40:54 +00:00
pooka
1f1ebcb118 VOP_MMAP fflags -> prot 2007-07-27 08:31:30 +00:00
pooka
c1d612fca8 <machine/stdarg.h> is needed for va_lists 2007-07-26 10:00:21 +00:00
pooka
0abd6d25d4 missed a few due to the blinding effects of underlining 2007-07-26 08:43:52 +00:00
pooka
9cb446adae include variable names in synopsis 2007-07-26 08:42:17 +00:00
pooka
924961206f pool_init: wchan is const 2007-07-25 09:14:18 +00:00
dsieger
206d59d40f Fix a glitch in previous commit:
s/mi_switch 9/mi_switch.9/

Reported by Paul Goyette.
2007-07-21 15:35:46 +00:00
dsieger
93f4326679 Remove obsolete content about cpu_switchto() from ctxsw(9) and rename
it to mi_switch(9).

Suggested by yamt@
2007-07-21 08:51:31 +00:00
dsieger
2fb0acefe7 Sync with reality:
- cpu_switch() is gone.
- Adjust function prototypes and return values
- Add references to csf(9) and sched_4bsd(9).
- Bump date.
2007-07-18 12:43:12 +00:00
yamt
916da2eb8f document kpause. largely copied from condvar.9. 2007-07-18 12:18:06 +00:00
dsieger
55e48935f0 Remove references to SCHED_LOCK(9), which is gone. Slightly sync with
reality.

XXX: This needs more updates after idle-lwp changes.
2007-07-17 20:56:22 +00:00
xtraeme
92f4397e50 Explain a bit more about edata->desc being unique in a device. 2007-07-17 17:10:58 +00:00
xtraeme
811e1e2e60 Fix a typo: it's ENVSYS_FPERCENT not ENVSYS_FPERCENTAGE.
Bump date.
2007-07-16 17:37:10 +00:00
wiz
680eacb522 Fix Fn abuse. New sentence, new line. End sentence with dot. 2007-07-15 21:33:12 +00:00
wiz
c01b8826d1 Fix Fn abuses. Sort SEE ALSO. End sentences with dots.
Use .Nm more.
2007-07-15 21:31:15 +00:00
jnemeth
77e1eaa78e setrunqueue is no more 2007-07-15 02:57:23 +00:00
dsieger
82d31a4a20 Remove obsolete SCHED_LOCK(9), which is gone.
ok by <ad>
2007-07-14 22:09:57 +00:00
dsieger
eeeb9eddd5 Add references to sched_4bsd(9). 2007-07-14 22:02:33 +00:00
dsieger
5c52ed78e9 Move scheduler(9) to sched_4bsd(9) and sync its contents with reality. Also
add a reference to McKusick et. al., which still contains the best in-depth
description of the 4.4BSD scheduler.
2007-07-14 21:54:30 +00:00
dsieger
10dc2af304 Remove obsolete setrunqueue(9) manpage.
ok by <ad>.
2007-07-14 20:39:33 +00:00
dsieger
4f02ad43b0 Add initial manpage for the "new" scheduler API.
Note: More content will follow, to this manpage as well as the NetBSD
Internals book.

Ok by <ad>
2007-07-14 20:23:12 +00:00
xtraeme
8f6e6386cb Bump date. 2007-07-14 11:47:15 +00:00
ad
8751253925 Update mlinks for callout/kthread changes. 2007-07-14 11:39:01 +00:00
ad
8a398d3980 Sync with reality. 2007-07-14 11:34:54 +00:00
ad
58af9c20d0 Sync with reality. 2007-07-14 11:22:33 +00:00
ad
53d643b5f7 - kcont was removed.
- Replace some references to tsleep.
2007-07-14 10:52:47 +00:00
dsl
ffa428bf85 Document the 'flags' parameter to kauth_cred_set/getgroups.
Fix some obvious typos in the return types and return values of these
functions.
2007-07-11 19:12:09 +00:00
xtraeme
c51a1c15bf Add the CODE REFERENCES section. 2007-07-04 17:35:20 +00:00
xtraeme
e719333534 Document the sysctl node to change the refresh value of the callout
function that monitors the sensors.
2007-07-03 22:47:20 +00:00
yamt
2025659d20 update and document yield(). 2007-07-03 12:14:24 +00:00
xtraeme
08d5afa292 Imported envsys 2, a brief description of the new features:
(Part 4: documentation and configuration files)

* Support for detachable sensors.
* Cleaned up the API for simplicity and efficiency.
* Ability to send capacity/critical/warning events to powerd(8).
* Adapted all the code to the new locking order.
* Compatibility with the old envsys API: the ENVSYS_GTREINFO
  and ENVSYS_GTREDATA ioctl(2)s are supported.
* Added support for a 'dictionary based communication channel' between
  sysmon_power(9) and powerd(8), that means there is no 32 bytes event
  size restriction anymore.
* Binary compatibility with old envstat(8) and powerd(8) via COMPAT_40.
* All drivers with the n^2 gtredata bug were fixed, PR kern/36226.

Tested by:

blymn: smsc(4).
bouyer: ipmi(4), mfi(4).
kefren: ug(4).
njoly: viaenv(4), adt7463.c.
riz: owtemp(4).
xtraeme: acpiacad(4), acpibat(4), acpitz(4), aiboost(4), it(4), lm(4).
2007-07-01 07:55:51 +00:00
pooka
b013a2d4f9 Include struct componentname declaration in struct namei - it's
usually the more interesting of the two anyway.
2007-06-30 18:55:19 +00:00
pooka
21a7d11f2b Fix description on what is returned locked and when.
noticed by Rumble
2007-06-28 08:02:41 +00:00
rumble
d831b3217f Fix typo. 2007-06-28 02:54:23 +00:00
rumble
4f748f12bb Note that if vp is NULL in cache_enter, a negative entry is created. 2007-06-25 16:33:50 +00:00
rumble
436b31f333 Add va_birthtime. 2007-06-24 22:49:44 +00:00
rumble
b9ff3c810f TRUE -> true, FALSE -> false. 2007-06-24 19:26:58 +00:00
pooka
5d2746d022 There is no p - it's the calling lwp these days. 2007-06-20 16:35:52 +00:00
pooka
0031e99f45 ident is now of type wchan_t 2007-06-17 18:50:07 +00:00
pooka
d1e849f0c3 vprint takes a const char *label 2007-06-15 11:42:11 +00:00
yamt
c2217bea1c fix the description of return values. pointed by Martin Husemann.
reviewed by toshii@
2007-05-21 02:30:47 +00:00
christos
eeefe01872 this experimental interface is not in use anymore. 2007-05-19 22:14:18 +00:00
christos
38efedca16 catch up with argument shuffle. 2007-05-19 22:13:57 +00:00
wiz
760ca22d96 Bump date for previous. 2007-05-19 14:30:55 +00:00
wiz
e2598a32e0 Fix bug introduced by imperfect wizd emulation. 2007-05-19 14:28:42 +00:00
yamt
297c65017f obsolete mi_switch.9 and cpu_switch.9 MLINKS. pointed by Blair Sadewitz. 2007-05-18 05:09:08 +00:00
pooka
7ed1d7403d vn_poll does not return success/error, it return what VOP_POLL
returns, i.e. mask of available events
2007-05-17 17:47:10 +00:00
yamt
19e935945f add cpu_idle.9. 2007-05-17 15:14:27 +00:00
yamt
6af9c3d49d update after yamt-idlelwp merge.
- remove cpu_exit.9.
- remove ctxsw.9 from makefile because it's too stale.
  XXX maybe it will revive as mi_switch.9 later.
- add cpu_switchto.9 to makefile.
2007-05-17 15:12:56 +00:00
yamt
e513490beb update after yamt-idlelwp merge. 2007-05-17 15:06:25 +00:00
hannken
64b7e5637e Fstrans_start() always returns zero, so change its type to void. 2007-05-17 07:26:21 +00:00
elad
6700cfccd6 Some Veriexec stuff that's been rotting in my tree for months.
Bug fixes:
  - Fix crash reported by Scott Ellis on current-users@.

  - Fix race conditions in enforcing the Veriexec rename and remove
    policies. These are NOT security issues.

  - Fix memory leak in rename handling when overwriting a monitored
    file.

  - Fix table deletion logic.

  - Don't prevent query requests if not in learning mode.


KPI updates:
  - fileassoc_table_run() now takes a cookie to pass to the callback.

  - veriexec_table_add() was removed, it is now done internally. As a
    result, there's no longer a need for VERIEXEC_TABLESIZE.

  - veriexec_report() was removed, it is now internal.

  - Perform sanity checks on the entry type, and enforce default type
    in veriexec_file_add() rather than in veriexecctl.

  - Add veriexec_flush(), used to delete all Veriexec tables, and
    veriexec_dump(), used to fill an array with all Veriexec entries.


New features:
  - Add a '-k' flag to veriexecctl, to keep the filenames in the kernel
    database. This allows Veriexec to produce slightly more accurate
    logs under certain circumstances. In the future, this can be either
    replaced by vnode->pathname translation, or combined with it.

  - Add a VERIEXEC_DUMP ioctl, to dump the entire Veriexec database.
    This can be used to recover a database if the file was lost.
    Example usage:

        # veriexecctl dump > /etc/signatures

    Note that only entries with the filename kept (that is, were loaded
    with the '-k' flag) will be dumped.

    Idea from Brett Lymn.

  - Add a VERIEXEC_FLUSH ioctl, to delete all Veriexec entries. Sample
    usage:

        # veriexecctl flush

  - Add a 'veriexec_flags' rc(8) variable, and make its default have
    the '-k' flag. On systems using the default signatures file
    (generaetd from running 'veriexecgen' with no arguments), this will
    use additional 32kb of kernel memory on average.

  - Add a '-e' flag to veriexecctl, to evaluate the fingerprint during
    load. This is done automatically for files marked as 'untrusted'.


Misc. stuff:
  - The code for veriexecctl was massively simplified as a result of
    eliminating the need for VERIEXEC_TABLESIZE, and now uses a single
    pass of the signatures file, making the loading somewhat faster.

  - Lots of minor fixes found using the (still under development)
    Veriexec regression testsuite.

  - Some of the messages Veriexec prints were improved.

  - Various documentation fixes.


All relevant man-pages were updated to reflect the above changes.

Binary compatibility with existing veriexecctl binaries is maintained.
2007-05-15 19:47:43 +00:00
xtraeme
8d72c34523 Don't mention ltsleep(9), it's obsolete. workqueue(9) uses condvar(9). 2007-05-13 20:24:57 +00:00
tnn
da779f39a1 fix typos 2007-05-13 19:02:17 +00:00
xtraeme
50d836969e In DESCRIPTION move the name argument to the proper place, so
that it matches the order specificied in the prototype.
2007-05-13 18:43:50 +00:00
itohy
bc7976e5a8 Add missing " 2007-05-10 09:08:38 +00:00
pooka
71ab04cbde make description of VOP_MMAP compatible with reality 2007-05-07 21:41:49 +00:00
pavel
30b691bf74 Sync the uvm_fault interface with reality after the removal of the
"fault type" third argument in rev. 1.110 of sys/uvm/uvm_fault.c

Hi Drochner!
2007-05-06 12:38:09 +00:00
yamt
58f7ebf59b sync with the code. 2007-04-21 17:52:09 +00:00
plunky
f5db72e7b7 Add 'service level' security for L2CAP and RFCOMM connections, following
the Linux (BlueZ) API.

    - L2CAP or RFCOMM connections can require the baseband radio link
    mode be any of:
	authenticated (devices are paired)
	encrypted (implies authentication)
	secured (encryption, plus generate new link key)

    - for sockets, the mode is set using setsockopt(2) and the socket
    connection will be aborted if the mode change fails.

    - mode settings will be applied during connection establishment, and
    for safety, we enter a wait state and will only proceed when the mode
    settings are successfuly set.

    - It is possible to change the mode on already open connections, but
    not possible to guarantee that data already queued (from either end)
    will not be delivered. (this is a feature, not a bug)

    - bthidev(4) and rfcomm_sppd(1) support "auth", "encrypt" and
    "secure" options

    - btdevctl(8) by default enables "auth" for HIDs, and "encrypt" for
    keyboards (which are required to support it)
2007-04-21 06:15:22 +00:00
yamt
73e9fbd3df update. (cpu_did_resched) 2007-04-20 13:45:43 +00:00
yamt
483db2967f update. 2007-04-18 12:19:45 +00:00
pooka
5d3221caa2 handle vptofh and fhtovp:
* file handles are not only for nfs
* these functions are not allowed to be null
* update description of vptofh to contain the size parameter
(*bump date)
2007-04-16 14:47:19 +00:00
plunky
2ec4c16ef8 although this is an intentionally undocumented interface (see PR/35278),
fix up the non existent documentation to reflect the reality.
2007-04-15 10:36:51 +00:00
plunky
a162e8343b Tidy this up:
fix mdoc warnings
	add missing .El
	add missing Fn

    remove extraneous text
    add function names to SYNOPSIS
2007-04-13 18:19:36 +00:00
plunky
68df426450 remove 'unknown keyword' error (use -tag or -hyphen, not both) 2007-04-13 00:36:21 +00:00
plunky
7b01b26c16 remove extraneous .El 2007-04-13 00:35:09 +00:00
ad
e8b43103b0 Try to be more concise, and add a bit more text. 2007-04-09 13:37:57 +00:00
ad
44815c2f0d Tidy up a bit. 2007-04-08 21:41:21 +00:00
ad
4d04f2f136 - Note that cv_has_waiters() can only be used to assert that there are
waiters sleeping non-interruptably (i.e., in cv_wait()). Prompted by
  a discussion with pooka@.
- Minor cosmetic changes.
2007-03-29 17:40:36 +00:00
pooka
3f2dd92fb2 document MALLOC_JUSTDEFINE and MALLOC_JUSTDEFINE_LIMIT 2007-03-29 16:29:37 +00:00
pooka
4d4d2d4517 fix definition of runp in VOP_BMAP 2007-03-29 12:06:58 +00:00
dyoung
9ff230d3d6 Define four new radiotap fields per discussions with John Bicket, Sam
Leffler, and others:

        IEEE80211_RADIOTAP_RX_FLAGS = 14,
        IEEE80211_RADIOTAP_TX_FLAGS = 15,
        IEEE80211_RADIOTAP_RTS_RETRIES = 16,
        IEEE80211_RADIOTAP_DATA_RETRIES = 17,

I describe the fields in the manual page and in comments in the
header file (cross-referenced by the manual page).
2007-03-26 04:32:14 +00:00
yamt
44203998c5 sync with reality. 2007-03-20 11:11:51 +00:00
ad
30a3230b81 Document the ipl argument to pool_init. 2007-03-15 16:02:40 +00:00
matt
32188e1e88 Fix typo 2007-03-10 00:04:11 +00:00
rmind
8c218ddd5e We no longer have uio_segflg and uio_procp members in the the struct uio.
Instead of these, we use uio_vmspace. OK: ad@
2007-03-07 22:40:24 +00:00
dogcow
c1a14b53bd running in emulated wizd mode, convert caddr_t to void *. 2007-03-07 00:41:16 +00:00
tsutsui
d8e09be7a9 caddr_t -> void * 2007-03-04 15:57:39 +00:00
wiz
bb65f0472f Bump date for previous. 2007-03-02 20:31:58 +00:00
wiz
f368ccb5df Bump date for previous. New sentence, new line. 2007-03-02 20:30:44 +00:00
yamt
54c3330421 sync with the code. (pri_t) 2007-03-01 14:24:25 +00:00
yamt
b2b964ea2a sys/proc.h -> sys/cpu.h 2007-02-23 15:59:17 +00:00
dyoung
bc99546f43 Reverse sense of preference numbers: prefer source addresses with
higher preference numbers.  Thanks to Mihai Chelaru for pointing
out my mistake.
2007-02-22 08:08:40 +00:00
mrg
46deb749ba document bus_dmatag_subregion(9) and bus_dmatag_destroy(9). 2007-02-21 21:13:01 +00:00
wiz
1b2b703d2f time(9) was renamed to time_second(9), fix xrefs. 2007-02-20 08:26:35 +00:00
wiz
b197e6e24d Fix some xrefs. Fix Dd argument. Remove superfluous Pps. 2007-02-20 08:22:05 +00:00
wiz
092c56a032 Sort SEE ALSO. 2007-02-20 08:18:03 +00:00
rmind
e3179c1bea Introduce table of contents for core references. Please note, that in
future one should follow such hierarchy:
  1. Table of contents (only intro.9)
    2. Abstract description of subsystems (e.g. memoryallocators.9)
      3. Concrete description of subsystem (e.g. vmem.9)

Thanks tsutsui@ for better structurization and wiz@ for quick review.
OK by tech-kern@ positivism.
2007-02-18 21:45:30 +00:00
yamt
1adc21b497 cpu_switchto doesn't use curlwp. 2007-02-17 17:48:17 +00:00
yamt
5ee77a9232 - move an implementation example to an EXAMPLES section.
- adapt to multiprocessor.
2007-02-17 17:35:52 +00:00
yamt
443a5d8276 need_resched -> cpu_need_resched 2007-02-17 17:29:24 +00:00