Commit Graph

11004 Commits

Author SHA1 Message Date
dholland 2d8b0e31c6 Adjust the loop that handles NOMAN and friends so grepping for NOMAN
actually finds it. Also note that it only works if set before
bsd.own.mk is included.

Otherwise, grep NOMAN /usr/share/mk/*.mk comes up empty, and since
naively setting it may not work, one can easily draw wrong
conclusions.
2008-03-10 01:18:29 +00:00
dholland b20bda484e MKMAN should not be set in source makefiles. Use NOMAN. 2008-03-09 22:47:11 +00:00
phx ae0b13c01b Make XFree86 compile for ofppc.
Approved by garbled.
2008-03-08 10:37:48 +00:00
martin 2bad903b03 Fix bit pattern error in example.
Reported by Edward Tomasz Napierala in PR port-sun3/38181.
2008-03-06 09:30:45 +00:00
plunky 85ebf19dbd pointy haired boss 2008-03-05 21:37:55 +00:00
xtraeme 9e715bd513 watchdog(8) -> wdogctl(8) 2008-03-05 13:28:15 +00:00
xtraeme 35d705abea Change my email adress to the netbsd one. 2008-03-04 11:31:57 +00:00
xtraeme 1ab13cc1f4 Add some notes for RAID 1/1+0 volumes and scsictl(8). 2008-03-03 15:35:22 +00:00
drochner fce349e672 update for pmf_device_register1() and the "boothowto" argument to
shutdown handlers
2008-03-03 11:43:18 +00:00
lukem ba936e32d4 Set linker warnings to be fatal if ${WARNS} > 0. 2008-03-03 06:33:17 +00:00
dholland b3c3a0fd7d CFV (call for votes), RFD (request for discussion) 2008-03-02 19:59:46 +00:00
plunky 7296c96ad8 NVM never mind 2008-03-02 17:42:08 +00:00
jmmv f51186f572 Fix build of tests when USETOOLS=no. Reported by veego@ in current-users
and notified to me by martin@.
2008-03-02 11:31:42 +00:00
rmind 2fd89ef88a Rename selrecord(9) man page to select(9). Sync selnotify() with reality,
remove selwakeup(), add and explain the usage of selinit() and seldestroy().

Reviewed by <ad>.
2008-03-02 00:30:21 +00:00
xtraeme 5bbe544447 Fix the mb(9) xref. 2008-03-01 22:28:46 +00:00
skrll 55edbc2411 Add hppa to the list of platforms that need help with branches.
Sort the list while I'm here.
2008-03-01 20:29:43 +00:00
xtraeme 38a2eeb907 ARC-1200 Rev A is supported. 2008-02-29 21:14:48 +00:00
xtraeme 9c9ee958b6 Improve the manpages with refs, new content, etc. 2008-02-29 20:56:33 +00:00
elad cd05a6ee9b Introduce a new kauth action, KAUTH_NETWORK_NFS, and two requests,
KAUTH_REQ_NETWORK_NFS_EXPORT and KAUTH_REQ_NETWORK_NFS_SVC, and use them
to replace two KAUTH_GENERIC_ISSUSER calls in the NFS code.

Also replace two more with KAUTH_SYSTEM_MKNOD, where appropriate.

Documetnation and examples updated. More to come.
2008-02-28 17:07:49 +00:00
xtraeme 51e43163c8 Add three new values for ENVSYS_DRIVE units:
* ENVSYS_DRIVE_OFFLINE, ENVSYS_DRIVE_CHECK and ENVSYS_DRIVE_BUILD
2008-02-28 16:21:34 +00:00
elad 67470a76a1 Factor out the guts of get/setparam so it can be used from the compat code.
Make the FreeBSD and Linux compat code convert the parameters to their
native representation and call the native routines.

Remove KAUTH_PROCESS_SCHEDULER_GET/SET.

Update documentation and examples.

XXX: For now, only the Linux compat code does the priority conversion
XXX: right.

Linux priority conversion code from yamt@, thanks!

Okay yamt@.
2008-02-28 16:09:18 +00:00
lukem 77b570b56b Use "GCC" instead of "gcc".
Highlight that MKGCCCMDS still does build the GCC libraries.
Suggested by Lloyd Parkes on tech-toolchain@
2008-02-27 00:36:00 +00:00
lukem a98f1bcdff Describe 'bool'. Update 'list'.
Inspired by FreeBSD.

Note: we could seek more inspiration from FreeBSD WRT login.conf(5)
and login_cap(3)'s implementation.
2008-02-25 23:52:48 +00:00
xtraeme aa8d8c1a0f Mention that bio(4) first appeared on NetBSD 4.0 too. 2008-02-25 22:18:31 +00:00
elad 58816354da Add "the other" BFKL, from blymn@. :) 2008-02-25 12:20:42 +00:00
xtraeme 54880c4f00 Added support for the mfi(4) controllers with powerpc IOPs such as
LSI SAS1078 or Dell PERC 6, from OpenBSD.

Tested by Akira Kato on current-users@.
2008-02-25 10:46:02 +00:00
reed 31c2217275 Mention the term "pseudo" for ptys. 2008-02-22 22:03:33 +00:00
tron a9b0526a9a Bump the date. 2008-02-18 18:36:21 +00:00
tron f760d97204 Add magic keyboard sequence for NetBSD-amd64. 2008-02-18 18:35:17 +00:00
elad 52cf460a76 Following input from Matthew Mondor, some Veriexec documentation changes:
- Document the signatures file format in a veriexec(5) man-page,
  - Document the strict levels and a general Veriexec intro in veriexec(8)
    instead of security(8).

Okay blymn@.
2008-02-18 10:37:19 +00:00
elad e99760e7e4 Fold KAUTH_REQ_PROCESS_SCHEDULER_* to KAUTH_PROCESS_SCHEDULER_*. In other
words, don't pass an action and a request, and just use a single action to
indicate what is the operation in question.

This is the first step in fixing PR/37986, which calls for policy/priority
checking in the secmodel code. Right now we're lacking room for another
parameter required to make a decision, and this change makes room for such.
2008-02-16 16:39:34 +00:00
apb 75e064ab6b Don't mention <machine/int_fmtio.h>; code should just
include <inttypes.h> to get intmax_t, PRIdMAX, and friends.
2008-02-16 14:22:16 +00:00
ad bd48672369 - Clarify how this works.
- Note the locking rules.
2008-02-14 17:39:50 +00:00
ad d4c279feec - Remove pointless AUTHORS section.
- Remove implementation details.
2008-02-14 17:25:51 +00:00
skrll 49c62025b3 Fix some pastos. 2008-02-13 16:00:18 +00:00
mjf 0294141b16 Typo fix 2008-02-11 15:49:00 +00:00
dyoung e90c5683d4 Suggest #include <sys/evcnt.h> instead of <sys/device.h>, since
the former is sufficient, and the latter pulls in oodles of
unnecessary stuff.
2008-02-11 03:49:13 +00:00
ichiro f5c8edbfe7 add new device support to uhmodem driver
PR/37985 from Yojiro UO
2008-02-11 02:23:09 +00:00
elad 8f8e9e057c Xref security(8) from veriexec(4), veriexec(9), veriexecctl(8), and
veriexecgen(8).

Suggested by Matthew Mondor.
2008-02-10 19:32:23 +00:00
jmmv 1abe396003 Allow Makefiles to skip the installation of an Atffile by defining NOATFFILE.
This is to be able to get the definition of TESTSBASE, which maybe should be
part of bsd.own.mk...
2008-02-10 12:28:54 +00:00
agc fca43256ed make sure we have an __UNCONST definition available, for portability reasons. 2008-02-10 11:02:05 +00:00
jmmv 62b4c6bc5c Add a MKMODULAR build-time option, defaulting to no, to enable the new
kernel modules framework.
2008-02-09 19:31:36 +00:00
mrg ecc90aa046 make all sun2 use -O0 and move most of the hacks out into just 3 files. 2008-02-09 02:37:21 +00:00
agc 5a37868bfa Define the version of the FUSE ABI we're working with specifically.
Don't hand all the argv options to fuse_main() - it's only interested
in the ones we haven't parsed ourselves.

These changes make the initiator compile and perform discovery successfully
on FreeBSD 6.3. Full login doesn't work yet due to a KSE related bug.
2008-02-07 07:33:37 +00:00
agc 5ca5718e92 Set a definitive FUSE ABI before including fuse.h, to avoid situations
where different operating ssystems default to different levels.
2008-02-07 07:21:15 +00:00
drochner 992ef89b0e include bsd.init.mk so that eg USETOOLS is available to
client Makefiles, approved by jmmv
2008-02-05 17:50:47 +00:00
elad 9db39a0c09 Link to scanned Xylogics manuals, found by chuck@.
URL: http://www.bitsavers.org/pdf/xylogics/
2008-02-04 20:59:34 +00:00
jmmv 6d7b7f5fd1 Sync with share files from atf 0.4. 2008-02-04 20:30:45 +00:00
jmmv 1561f4867f Rebuild shell-based tests if the atf-compile host tool has changed. The
contents of the generated scripts may change (as will happen with ATF 0.4),
so this dependency is important to have.  Dunno how to deal with the
non-tools case other than adding an entry in UPDATING, but if you are not
using tools, you can expect all kinds of breakage.
2008-02-04 14:15:57 +00:00
uwe f2d6229f80 Mark up PMFE_* list properly. 2008-02-03 17:18:18 +00:00
uwe b5fde352cb pmf_device_register() returns false on error. 2008-02-03 16:56:42 +00:00
xtraeme 4d24afd74c Xref wdogctl(8). 2008-02-03 06:41:39 +00:00
elad e43f626d03 Add, document, and use KAUTH_REQ_PROCESS_KTRACE_PERSISTENT. 2008-02-02 21:04:40 +00:00
elad cd23f36378 Replace a KAUTH_GENERIC_ISSUSER in the cpuctl code with a proper kauth
request.

Reviewed by ad@, tested by me.
2008-02-01 20:01:06 +00:00
jdc 608790d545 Note bugs in the HW checksum routines. 2008-02-01 11:04:06 +00:00
ad 234836feb7 Sync with reality. This is a work in progress. 2008-02-01 09:05:52 +00:00
tnn 42efa34b27 wtf: I don't know what idk means!
^^^^^^^^^^^^
2008-01-31 11:45:16 +00:00
elad fb37bad459 Use proper kauth(9) actions/requests for native scheduler stuff and the
recently introduced processor-sets.

Discussed with and okay rmind@, yamt@, and christos@.
2008-01-30 17:54:55 +00:00
ad 162c8882a2 These interfaces have been obsoleted and removed from the system.
Please see the condvar(9), mutex(9), and rwlock(9) manual pages for
     information on kernel synchronisation primitives.
2008-01-30 14:18:53 +00:00
nakayama c3420b91a3 Follow the recent rpcgen(1) change.
The environment variable of the C preprocessor has replaced to RPCGEN_CPP.
2008-01-29 14:14:54 +00:00
xtraeme 6efe384afc Remove references to check_uucp in daily.conf(5) and the defaults
file... uucp was removed a while ago.
2008-01-27 05:20:24 +00:00
wiz 491885cb8a Document that cv_timedwait with a ticks argument of zero behaves like
cv_wait.
2008-01-26 14:16:27 +00:00
tls 49444bc037 Make /dev/crypto properly cloning. Leave CRIOGET in place but note that
it is deprecated, no longer required, and will be removed in a future
release of NetBSD.

Dramatically reduce the size of the session structure by removing an
IOV_MAX array of iovecs where only the first was use.  Saves an 8k
bzero on each session creation.

Convert fixed-size allocations in cryptodev.c to pools.
2008-01-26 00:04:27 +00:00
jmcneill e60a9e5d81 Note Portege 3440 support, and change working for X11 switching bug, from
Martin S. Weber on current-users.
2008-01-25 20:41:22 +00:00
tls 9675caff5e Some minor opencrypto fixes, one with a major performance impact for
OpenSSL:

1) Fix extremely misleading text in crypto.4 manual page so it does not
   appear to claim that a new cloned file descriptor is required for every
   session.

2) Fix severe performance problem (and fd leak!) in openssl cryptodev
   engine resulting from misunderstanding probably caused by said manual
   page text.

3) Check for session-ID wraparound in kernel cryptodev provider.  Also,
   start allocating sessions at 1, not 0 -- this will be necessary when
   we add ioctls for the creation of multiple sessions at once, so we
   can tell which if any creations failed.
2008-01-25 07:09:56 +00:00
ad f75e36826b Document returning parameter. Fixes PR misc/37612. 2008-01-24 23:06:10 +00:00
tnn 340f654f47 While here, also add HBA 2008-01-24 15:04:24 +00:00
tnn a105ac09e3 Add HCI 2008-01-24 15:01:21 +00:00
tnn 1b0f7f4f5a Mention vfs_subr2.c. 2008-01-24 07:11:25 +00:00
tnn 9c6c94658e vattr_null lives in vfs_subr2.c now. 2008-01-24 07:02:31 +00:00
elad 3c22fac894 Bump date. 2008-01-23 15:20:54 +00:00
elad c27d5f30b6 Tons of process scope changes.
- Add a KAUTH_PROCESS_SCHEDULER action, to handle scheduler related
    requests, and add specific requests for set/get scheduler policy and
    set/get scheduler parameters.

  - Add a KAUTH_PROCESS_KEVENT_FILTER action, to handle kevent(2) related
    requests.

  - Add a KAUTH_DEVICE_TTY_STI action to handle requests to TIOCSTI.

  - Add requests for the KAUTH_PROCESS_CANSEE action, indicating what
    process information is being looked at (entry itself, args, env,
    open files).

  - Add requests for the KAUTH_PROCESS_RLIMIT action indicating set/get.

  - Add requests for the KAUTH_PROCESS_CORENAME action indicating set/get.

  - Make bsd44 secmodel code handle the newly added rqeuests appropriately.

All of the above make it possible to issue finer-grained kauth(9) calls in
many places, removing some KAUTH_GENERIC_ISSUSER requests.

  - Remove the "CAN" from KAUTH_PROCESS_CAN{KTRACE,PROCFS,PTRACE,SIGNAL}.

Discussed with christos@ and yamt@.
2008-01-23 15:04:38 +00:00
dyoung fbc39b6d24 Briefly describe elanpex(4) and elanpar(4). Update AUTHORS section. 2008-01-21 22:00:37 +00:00
dyoung 181cb90ac3 Remove elanopt(4) cross-references. 2008-01-21 21:51:57 +00:00
ichiro 817e003a02 add full support device driver for Huawei E220 wireless modem
PR/37692 from Yojiro UO
---
uhmodem: device driver for huawei 3G wireless modem

* what it is?

A device driver for huawei 3G wireless modem, E220 and its valiations.

The devices are very simuler to ubsa device, but they need special care
to use as modem device.
This patch introduce "uhmodem (USB Huawei modem)" for the devices.
A uhmodem device has two com devices and one USB mass strage device.
The driver enable to use all of them.

* dmesg:
uhmodem0 at uhub0 port 1 configuration 1 interface 0
uhmodem0: HUAWEI Technologies HUAWEI Mobile, rev 1.10/0.00, addr 2
uhmodem0: mass storage only mode, reattach to enable modem
uhmodem0: at uhub0 port 1 (addr 2) disconnected
uhmodem0 detached
uhmodem0 at uhub0 port 1 configuration 1 interface 0
uhmodem0: HUAWEI Technologies HUAWEI Mobile, rev 1.10/0.00, addr 2
ucom0 at uhmodem0 portno 0: modem
ucom1 at uhmodem0 portno 1: monitor
umass0 at uhub0 port 1 configuration 1 interface 2
umass0: HUAWEI Technologies HUAWEI Mobile, rev 1.10/0.00, addr 2
umass0: using SCSI over Bulk-Only
scsibus0 at umass0: 2 targets, 1 lun per target
cd0 at scsibus0 target 0 lun 0: <HUAWEI, Mass Storage, 2.31> cdrom removable
2008-01-21 11:36:46 +00:00
dyoung 934ea5e80a Install elanpar(4), elanpex(4) manual pages. Update distribution
set lists.
2008-01-21 08:13:55 +00:00
dyoung 88b0f67d74 Add elanpar(4) and elanpex(4) manual pages. Cross-reference from
elansc(4).  Updates to the Makefile and the distribution set lists
are coming.
2008-01-21 08:07:20 +00:00
dsl 76952d779a Describe mbr_com0 and mbr_com0_9600
Include the filenames in the descriptive table entry.
2008-01-20 15:05:15 +00:00
pooka 13e4604edb improve readdir, abortop and bmap description
PR kern/15062 by Love
2008-01-19 19:56:47 +00:00
skrll 2e64c5fc7e Typo in uai_interface_index.
PR/37792 from Yojiro UO.
2008-01-19 09:58:38 +00:00
ad bbc79e58a6 Pull in my modules code for review/test/hacking. 2008-01-16 12:34:50 +00:00
xtraeme 2f5c51ed31 Bump date now that MATH_EMULATE has been removed. 2008-01-16 09:57:41 +00:00
ad dfe83e08ca Remove options MATH_EMULATE. 2008-01-16 09:37:04 +00:00
wiz 38febee9fd Add NIFOC, from Philippe Audéoud in PR 37291. 2008-01-12 11:47:13 +00:00
skrll 21f4fe85eb Enable gdb on hppa. 2008-01-10 22:21:43 +00:00
simonb ccab3b34ce Remove support for NetBSD/pc532. 2008-01-10 13:40:36 +00:00
xtraeme 5ff8000aa3 transferlockers() is gone. ok ad 2008-01-09 22:06:00 +00:00
wiz ccb4a914d3 Add RFE (request for enhancements). 2008-01-09 20:41:10 +00:00
xtraeme 02a6d9a9bb Mention GPIO_PIN_PULLDOWN, GPIO_PIN_INVIN and GPIO_PIN_INVOUT; from OpenBSD. 2008-01-09 16:15:41 +00:00
xtraeme b62fe25e9c <wizd> bump date! 2008-01-09 15:52:20 +00:00
xtraeme 1801f3d206 Mention gcscpcib(4), reorder entries, just mention gpioctl(8) and
not all drivers again.
2008-01-09 15:51:47 +00:00
xtraeme 8783714443 Fix up .Nm. 2008-01-09 14:56:38 +00:00
xtraeme 810aa8579e Add gcscpcib(4): a driver for the AMD CS5535 and CS5536 Companion Device
that acts as PCI-ISA bridge and supports a Timecounter, Watchdog Timer
and GPIO.

Adapted by Yojiro UO and minor tweaks by me from OpenBSD. Tested on
CS5535 and CS5536. This closes PR kern/37577.
2008-01-09 14:23:46 +00:00
simonb d8de5b102b Remove support for NetBSD/pc532. 2008-01-09 11:25:58 +00:00
simonb 2a6f9ca0a9 Remove some old sh5 references. 2008-01-09 07:55:18 +00:00
elad 964f16c2b9 Make fork use kauth.
Been running in my tree for over a month at least.

Reviewed and okay yamt@, and special thanks to him as well as rittera@
for making this possible through fixing NDIS to not call fork1() with
l1 != curlwp.
2008-01-07 23:51:06 +00:00
jdc 20409ec3a8 Mention SX fibre card support.
Mention Sun GEM documentation.
2008-01-05 20:31:18 +00:00
apb 4ee202cfe2 If a menu line in boot.cfg has an empty description, then re-use the
command as the description.  For example,

	menu=:boot netbsd -s

now works like

	menu=boot netbsd -s:boot netbsd -s
2008-01-05 19:29:16 +00:00
mjf c4a57c66e1 Duh, it's 2008 now, not 2007. 2008-01-04 23:43:56 +00:00
mjf 3e08395424 Rephrase the explanation of when "func" is called. 2008-01-04 23:42:39 +00:00
xtraeme 1332a3c58b Typo: muliprocessor -> multiprocessor 2008-01-04 18:13:37 +00:00
ad 0e3fd5532f Record LKM entry point in the ELF file header. 2008-01-04 14:54:29 +00:00
xtraeme 453083d9f3 Typo 2008-01-03 21:16:53 +00:00
yamt 1f7bd3c331 note about 0 and NULL. 2008-01-03 15:59:57 +00:00
jnemeth 025a13a57f note support for the 53c1020 from Dave Huang on current-users@ 2008-01-03 01:51:58 +00:00
xtraeme 8c3f9bc015 Sync with reality, we have 85% of management stuff with native applications.
No CLI binary required to manage the Areca RAID controllers.
2008-01-02 23:50:52 +00:00
xtraeme ea4b854aaf Mention new features and sync with reality. 2008-01-02 23:49:31 +00:00
pooka b5071eca2f mtx is not an interlock here, merely convenience. 2008-01-02 16:51:32 +00:00
sketch 9e7635573e Seasonal addition, HNY: Happy New Year! 2008-01-02 09:14:17 +00:00
ad 2ecdf58c2c Remove systrace. Ok core@. 2007-12-31 15:31:24 +00:00
ad 19d27a5813 -compat_hpux 2007-12-31 13:33:37 +00:00
ad 39d27b340e - Remove reference to COMPAT_HPUX.
- i386 cpu options are gone.
2007-12-31 13:30:14 +00:00
plunky aeab3db895 request and keep a mask of supported commands per unit in order
to block unsupported HCI commands sent by unprivileged users
reaching the device.
2007-12-30 18:26:42 +00:00
adrianp 5b238e83d5 Appeared in NetBSD 4 not 5 2007-12-29 16:21:16 +00:00
adrianp 142757459c Appeared in NetBSD 4 not 5 2007-12-29 16:12:29 +00:00
dholland f1165c2fa9 This file's rcsid apparently got mangled at some point.
Noted by Chavdar Ivanov.
2007-12-29 15:12:05 +00:00
wiz 41fff49aa3 Document CALLOUT_MPSAFE. Bump date. 2007-12-29 09:41:10 +00:00
xtraeme 7abc984e72 Added support for the Watchdog Timer built in the IT871[268] Super I/Os.
The WDT supports any value between 1 and 65535 seconds (or minutes, but
but the driver only uses seconds).
2007-12-29 06:05:06 +00:00
christos 7af2df4395 add MKPIE 2007-12-28 21:35:45 +00:00
dholland 8e861287d3 Still more stuff: AST, PAE, RAS.
(I guess this is what happens when I catch up on old mail)
2007-12-28 19:27:06 +00:00
pooka 844fb47f15 The leprechaun is dead, update interfaces. 2007-12-28 18:05:22 +00:00
dholland ca5bc82dc2 Add some more stuff:
ADB, AFS, BAR, HA, OS, RPC, TCB, LOC, KLOC, LSI, VLSI, VA, PA
ICE as in-circuit emulator
KVM as kernel virtual memory
2007-12-28 15:19:14 +00:00
dholland 1061c9e847 add ASLR, PIC, PIE 2007-12-28 14:50:40 +00:00
elad d0431ebd34 Document PaX ASLR.
Also requested by xtraeme@.
2007-12-27 00:40:54 +00:00
elad cc43e61ef3 Update for PaX ASLR. 2007-12-27 00:20:11 +00:00
jmmv 0287baacad Make the clean target work when OBJS is set but PROG is not, as happens
for example in gnu/lib/crtstuff4.  Reported by drochner@.
2007-12-26 22:52:10 +00:00
christos 908844df6c add PAX_ASLR 2007-12-26 22:35:33 +00:00
jmcneill dde292899e pmap_phys_address: the prototype for this asks for a paddr_t, not an int. 2007-12-25 17:03:37 +00:00
jmcneill 190527566a Move sony.4 from i386 to MD man page directory 2007-12-23 17:39:19 +00:00
wiz 4cbd5a3a50 + DRY: don't repeat yourself 2007-12-23 16:03:28 +00:00
tsutsui f35b4c41fc Add ICE (internal compiler error), used on gcc. 2007-12-22 09:29:26 +00:00
xtraeme 4bb97c0a3e After comments from joerg@, backout previous and use 'cpuN'. 2007-12-21 21:36:22 +00:00
xtraeme 314d6f22a8 cpuN -> coreN 2007-12-21 01:16:30 +00:00
uebayasi bbd52a396e Use TAB in .Bd -literal. 2007-12-20 03:21:47 +00:00
pooka 4d243cfc9d use generic getattr 2007-12-19 14:01:30 +00:00
garbled 49a3869ae1 Import the config documentation from FreeBSD into the smm. Rather than
name the directory "02.config" as it historically was, name it config, so
that if we ever want to update this book for the modern age, we can move
chapters around, delete them, etc, without mass confusion.
2007-12-18 03:35:51 +00:00
rumble a2d448e894 s/prop_array_t;/prop_array_t array;/ 2007-12-17 17:52:37 +00:00
joerg 60a3119281 Alias UTF-8 to utf8 for symmetry with latin1. 2007-12-17 14:06:57 +00:00
apb 802860abdb When MAKEDEV creates a memory file system, let it try mount_tmpfs(8)
before falling back to mount_mfs(8).  Also calculate required number
of inodes more accurately.

Discussed in tech-userlevel.
2007-12-15 21:33:13 +00:00
apb beae89cd6d In MAKEDEV.tmpl:
* Add a nooutput function to be used instead of redirecting to /dev/null,
  because /dev/null might not exist early in the boot sequence.  This
  should fix a bug in which the pax autodetection failed when used from
  init(8) with a read-only root file system without a /dev/null.
* Move most of the main program into a new makedev_main function,
  to allow reuse by MAKEDEV.local.

In MAKEDEV.local:
* Use the new makedev_main function defined in MAKEDEV.  This allows
  MAKEDEV.local to support all the options understood by MAKEDEV, instead
  of only a subset.  This should fix a bug in which the setup() function
  could try to use pax mode even though that was previously not supported.

In MAKEDEV.local man page:
* Update list of command line options.
* Don't explain all the options, just refer to MAKEDEV(8) man page.
* Remove BUGS section now that all MAKEDEV options are supported
  by MAKEDEV.local.
2007-12-15 17:28:09 +00:00
pavel 83ae3a0049 Note the socket(2) syscall change. 2007-12-15 16:25:46 +00:00
pavel 2c8b453fd0 Complete the list of libraries needed for 3.0 binary compatibility. From
the emulators/compat30 package, suggested by Johnny Lam.
2007-12-15 16:15:26 +00:00
apb 241ba90c52 Add doc2html support for Bro/Brc/Brq. 2007-12-15 14:57:39 +00:00
apb d38a66619d Fix the definition of .Fl. Now this construct works:
.Ic boot Fl c .

Previously, the space between "boot" and "-c" was missing from the
HTML output.
2007-12-15 14:48:40 +00:00
pavel 474470307d Update URLs after website reorganization. patch by OKANO Takayoshi, from
PR 37070.
2007-12-14 21:15:52 +00:00
apb 4ed89c84f0 Synchronise shared text between man8/boot.8, man8/man8.i386/boot.8,
man8/man8.i386/dosboot.8, and man8/man8.i386/pxeboot.8.

* In all:
  - First few lines of each man page should be .Dd, .Os, .Dt, .Nm;
  - Use Nx; new sentence, new line; serial comma;
  - Update comments about which files to keep in sync.
* In MI boot(8):
  - add reference to architecture-specific boot(8);
  - add commented-out reference to boot.cfg(5);
  - reinstate BUGS heading that was lost when the MI boot.8 was
    created from i386 boot.8.
* In i386 boot.8:
  - mention -x and -z flags;
  - we can boot from media other than floppy, or from the network;
  - remove first paragraph in BUGS section now that an MI boot(8)
    man page exists.
* In i386 dosboot.8 and pxeboot.8:
  - mention -c, -x, and -z flags.
2007-12-14 12:03:53 +00:00
xtraeme 04f935d910 Fix pmf_device_register() prototype, this returns bool and not void. 2007-12-13 15:37:33 +00:00
yamt fa92fe776c document whatis. 2007-12-13 02:45:51 +00:00
xtraeme c10e464ab3 acpiecdt* at acpi? is required now. HI JOERG! 2007-12-12 21:12:45 +00:00
xtraeme a239f94d36 Rename battery(4) to battery_pmu(4), because at least we know that is
only specific to pmu.
2007-12-12 20:26:23 +00:00
macallan 2204867a54 add a simple battery(4) man page 2007-12-12 20:09:27 +00:00
apb d38013a8c2 Document CPUFLAGS, and note that CFLAGS shold not be set in mk.conf. 2007-12-12 19:52:02 +00:00
lukem e226e0f887 It's "its" for possessive, not "it's". 2007-12-11 14:06:04 +00:00
elad 98c50c91dd Add TAILQ_CONCAT() and STAILQ_CONCAT(), from FreeBSD. 2007-12-11 11:24:21 +00:00
agc 755a2e55e0 Move to a resizable dynamic array for the targets that the initiator
can find.

If the initiator discovers too many targets for it to handle
(currently more than 16), then truncate to the maximum with a loud
warning message, rather than aborting.

In practice, this means that multiple targets can now be used with the
NetBSD iSCSI initiator.

% ls -laR /mnt/inspiron1300.wherever.co.uk/
total 192
drwxr-xr-x  2 agc   agc    512 Dec 11 08:53 .
drwxr-xr-x  2 root  wheel    0 Jan  1  1970 ..
drwxr-xr-x  2 agc   agc    512 Dec 11 08:53 target0
drwxr-xr-x  2 agc   agc    512 Dec 11 08:53 target1

/mnt/inspiron1300.wherever.co.uk/target0:
total 576
drwxr-xr-x  2 agc  agc        512 Dec 11 08:53 .
drwxr-xr-x  2 agc  agc        512 Dec 11 08:53 ..
lrw-r--r--  1 agc  agc         44 Dec 11 08:53 hostname -> inspiron1300.wherever.co.uk
lrw-r--r--  1 agc  agc          9 Dec 11 08:53 ip -> 10.4.0.42
lrw-r--r--  1 agc  agc         16 Dec 11 08:53 product -> NetBSD iSCSI
-rw-r--r--  1 agc  agc  104857600 Dec 11 08:53 storage
lrw-r--r--  1 agc  agc         43 Dec 11 08:53 targetname -> iqn.1994-04.org.netbsd.iscsi-target:target0
lrw-r--r--  1 agc  agc          8 Dec 11 08:53 vendor -> NetBSD
lrw-r--r--  1 agc  agc          4 Dec 11 08:53 version -> 0

/mnt/inspiron1300.wherever.co.uk/target1:
total 576
drwxr-xr-x  2 agc  agc       512 Dec 11 08:53 .
drwxr-xr-x  2 agc  agc       512 Dec 11 08:53 ..
lrw-r--r--  1 agc  agc        44 Dec 11 08:53 hostname -> inspiron1300.wherever.co.uk
lrw-r--r--  1 agc  agc         0 Dec 11 08:53 ip ->
lrw-r--r--  1 agc  agc        16 Dec 11 08:53 product -> NetBSD iSCSI
-rw-r--r--  1 agc  agc  52428800 Dec 11 08:53 storage
lrw-r--r--  1 agc  agc        43 Dec 11 08:53 targetname -> iqn.1994-04.org.netbsd.iscsi-target:target1
lrw-r--r--  1 agc  agc         8 Dec 11 08:53 vendor -> NetBSD
lrw-r--r--  1 agc  agc         4 Dec 11 08:53 version -> 0
%
2007-12-11 09:07:36 +00:00
reed cc3ab0502a Add MFC. A FreeBSD-ism that is often used outside of FreeBSD. 2007-12-10 16:14:53 +00:00
jmcneill 0e8ccf6ed2 Remove trailing comma in SEE ALSO section, bump date. 2007-12-10 12:49:10 +00:00
jmcneill 75a94c407a Add power management framework man page. 2007-12-09 20:37:42 +00:00
yamt 9390360597 should -> can 2007-12-09 08:53:57 +00:00
apb 368240a3c4 regen 2007-12-09 08:46:57 +00:00
apb 6d3d3ebe02 * MAKEDEV's "-M -M" option was always intended for use only by init(8).
Improve the documentation around that.
* The "-p pax", "-m mknod", and "-s" (mtree specfile) options should
  always have been mutually exclusive.  Now enforce that.
* The "-f" option didn't ever work with pax or mtree mode; document that,
  and make it an error to try something that won't work.
* Make pax mode the default, if no other options prevent this, and if
  "pax -w -M" appears to be usable.
* Add missing options to a usage message.
2007-12-09 08:46:16 +00:00
yamt 478ca46add document LWP_CACHE_CREDS. 2007-12-09 08:31:58 +00:00
wiz 3c088505e9 Spelling. 2007-12-08 11:09:58 +00:00
wiz 64617fb7d8 New sentence, new line. Sort SEE ALSO. Use standard headers.
Replace links from iic(4) with iic(9) because the former doesn't exist.
XXX: battery(4) and smartbat(4) don't exist either.
2007-12-08 11:06:52 +00:00
ad 3aac377195 Fix pasto. 2007-12-07 14:24:21 +00:00
xtraeme 820f120b52 Add ENVSYS_DRIVE_MIGRATING for ENVSYS_DRIVE sensors, this is for RAID
volumes that are migrating such as when you change the stripe size.

While I'm here use the same string than we had in the old framework to
report status "online" vs "drive is online", because the sensor might be
a RAID volume and not just a drive.
2007-12-07 11:47:49 +00:00
xtraeme 79511422f5 Typo: indepenent -> independent 2007-12-06 10:36:37 +00:00
xtraeme 7b695de5c1 Typo: higest -> highest 2007-12-06 10:32:12 +00:00
xtraeme 9925ec4aa7 typo: futher -> further 2007-12-06 10:27:20 +00:00
ad 7d67c53f8d Minor corrections, from David P. Reese, Jr. 2007-12-05 18:12:09 +00:00
ad 383c1bbc65 Minor corrections. 2007-12-05 18:10:00 +00:00
xtraeme b831aabcdc Mention arcmsr(4). 2007-12-05 12:30:54 +00:00
ad e1b5d7773c Add links for softint_* 2007-12-05 05:52:21 +00:00
ad 96f20655cf Sync with reality and supply a large dose of hot air. 2007-12-05 05:49:59 +00:00
ad d3b027e04e Xr spl(9) 2007-12-05 05:24:28 +00:00
ad 0c655cb964 Note that rw locks can be taken from a soft interrupt handler. 2007-12-05 05:22:22 +00:00
ad 55bfbff8a0 Sort. 2007-12-05 05:20:38 +00:00
ad 6a7a863131 + mutex_spin_enter, mutex_spin_exit 2007-12-05 05:19:34 +00:00
ad 64bd285067 Sync with reality. (Apolgies for moving the goalposts slightly but it took
a long time to decide on and implement the new interrupt model.)
2007-12-05 05:17:53 +00:00
ad 851c98e8ed +splsoftbio(9) 2007-12-05 04:53:19 +00:00
ad f9ff149878 - See the spl(9) manual page for a description of interrupt priority levels.
- splbio -> splvm
2007-12-05 04:50:49 +00:00
ad 394d36de78 sys/param.h ??? 2007-12-05 04:49:26 +00:00
ad 7ff112988c IPL_BIO -> IPL_VM 2007-12-05 04:48:57 +00:00
ad be843f3b0a Sync with reality. 2007-12-05 04:47:56 +00:00
xtraeme e1d9000305 arc -> arcmsr 2007-12-05 00:22:12 +00:00
xtraeme 11b3a747bd Rename the Areca RAID driver (known as arc(4) to arcmsr(4) to avoid
namespace conflict with NetBSD/arc.

Found by tsutsui@.
2007-12-05 00:18:06 +00:00
xtraeme a7f63e6197 Add missing dot. 2007-12-04 23:12:07 +00:00
mjf d4a648c345 Implement a new magic string for magic symlinks, @ruid, which exapnds to the
real user id of the process and use this magic string for per-user tmp.
This should fix PR/35687

Kernel parts reviewed by wrstuden@
2007-12-04 22:09:01 +00:00
pooka 7b59c3d4c2 Add note that this manual should not be trusted to be entirely
up-to-date.  (and don't bump date to give a hint about the vintage
of reality of the discussion in here)
2007-12-04 19:48:24 +00:00
xtraeme 8e6cf74867 Areca Technology Corporation SATA RAID controller driver, ported
from OpenBSD.

arc0 at pci2 dev 14 function 0: interrupting at ioapic0 pin 18 (irq 5)
arc0: Areca ARC-1210 Host Adapter RAID controller
arc0: 4 ports, 256MB SDRAM, firmware <V1.43 2007-4-17>
scsibus0 at arc0: 16 targets, 8 luns per target
[...]
scsibus0: waiting 2 seconds for devices to settle...
sd0 at scsibus0 target 0 lun 0: <Areca, ARC-1210-VOL#00, R001> disk fixed
sd0: 465 GB, 56514 cyl, 36 head, 480 sec, 512 bytes/sect x 976562176 sectors
sd1 at scsibus0 target 0 lun 1: <Areca, ARC-1210-VOL#01, R001> disk fixed
sd1: 465 GB, 56514 cyl, 36 head, 480 sec, 512 bytes/sect x 976562176 sectors

bioctl(4) output with two RAID0 volumes:

Volume  Status               Size Device
 arc0 0 Online               466G ARC-1210-VOL#00 RAID0
      0 Online               234G 0:0.0   noencl <WDC WD2500YS-01SHB1 20.06C06>
      1 Online               234G 0:1.0   noencl <WDC WD2500YS-01SHB1 20.06C06>
 arc0 1 Online               466G ARC-1210-VOL#01 RAID0
      0 Online               234G 0:2.0   noencl <WDC WD2500YS-01SHB1 20.06C06>
      1 Online               234G 0:3.0   noencl <WDC WD2500YS-01SHB1 20.06C06>

The driver still needs changes related to locking and talking to the
firmware, which sometimes is unable to answer...

Raid card donated by Areca Technology Corporation via Trent George.
Disks used for testing were contributed by TNF.

Thank you very much.
2007-12-04 18:47:50 +00:00
oster 0fa5922403 Add a '-D' option to allow "Discovery" of the targets provided by a host.
Initial support for multiple targets from the same host.

Base 'MaxTargets' on a #define, rather than hard-coding.

Reviewed by: agc
2007-12-04 16:22:38 +00:00
jmcneill ec441ebbd7 Document boot -x 2007-12-04 01:00:54 +00:00
riz 46e81bb02d Add SCTP and a second definition of STP. 2007-12-03 18:45:06 +00:00
wiz e270f5ec9c New sentence, new line. Use correct verb form. 2007-12-03 18:09:28 +00:00
wiz dd74b1a149 Standardize spelling. We use the full month name for .Dd. 2007-12-02 22:12:04 +00:00
wiz c8684d9bac Standardize spelling. Remove superfluous Pp. Fix typo. 2007-12-02 22:09:34 +00:00
wiz ba1fba9f16 Prepare for HTML output. 2007-12-02 21:52:30 +00:00
wiz 4998f61c09 Add comma in enumeration. 2007-12-02 21:45:59 +00:00
wiz f9f8a4cb40 Use Nx and Ap. filesystem -> file system. 2007-12-02 21:44:58 +00:00
wiz 1db713adf2 Use Fn; fix duplicate word and time problem. Use Cd for options. 2007-12-02 21:09:21 +00:00
wiz 875af49afd New sentence, new line. Spelling. Prepare for HTML output. 2007-12-02 20:03:11 +00:00
wiz 0525be680e Fix typo. Add comma in enumeration. 2007-12-02 19:59:11 +00:00
wiz f40518e2ba New sentence, new line. Use proper markup. 2007-12-02 19:54:32 +00:00
wiz 14cf4b821f Fix typo. 2007-12-02 19:44:02 +00:00
wiz 9bf8a73ed2 file system -> filesystem; fix typos. 2007-12-02 19:35:39 +00:00
wiz 0d78c993a2 Use more markup. Fix xrefs. Use standard headers. 2007-12-02 19:31:46 +00:00
wiz e5a870f3ec New sentence, new line. 2007-12-02 19:20:50 +00:00
wiz deaf5d690e Use Dq for words (Sq only for single characters). 2007-12-02 19:09:16 +00:00
wiz 1c3da1b79c mdoclint and typo fixes. 2007-12-02 19:03:16 +00:00
hannken d556dc98b0 Fscow_run(): add a flag "bool data_valid" to note still valid data.
Buffers run through copy-on-write are marked B_COWDONE.  This condition
is valid until the buffer has run through bwrite() and gets cleared from
biodone().

Welcome to 4.99.39.

Reviewed by: YAMAMOTO Takashi <yamt@netbsd.org>
2007-12-02 13:56:15 +00:00
kiyohara 131824e0d1 Add BTUART_HCITYPE_BGB2XX and obsolate BTUART_HCITYPE_BT2000C.
Add BUGS.
2007-12-02 02:23:43 +00:00
kiyohara dd634aa497 Add BUGS.
bcsp(4) not support configuration for baud rate yet.
2007-12-02 02:09:22 +00:00
wiz 246a193933 Drop trailing whitespace. 2007-12-01 20:00:16 +00:00
wiz 666ba94997 Fix typos. 2007-12-01 19:59:05 +00:00
wiz 918afe9f06 Fix typos. New sentence, new line. 2007-12-01 19:57:08 +00:00
wiz 6a0134c241 Spelling, HTML output fix. 2007-12-01 19:46:56 +00:00
wiz b5731f8e12 Fix typos. 2007-12-01 19:43:42 +00:00
wiz 66d96f8825 Spelling. 2007-12-01 19:13:30 +00:00
wiz 09745bf05f Fix typos. 2007-12-01 18:55:12 +00:00
jmcneill b1124015e5 Bump date on previous, emo-style. 2007-12-01 18:38:23 +00:00
wiz 2a39a2219f filesystem -> file system. 2007-12-01 18:35:06 +00:00
jmcneill 90727c99e3 Document boot -z 2007-12-01 18:30:04 +00:00
ad 2135f37c64 -options I2OVERBOSE 2007-12-01 18:19:04 +00:00
pooka 21913eabe5 Rototill.
Ok, ok, a few more words about it: stop holding puffs_cc as a holy
value and passing it around to almost every possible place (popquiz:
which kernel variable does this remind you of?).  Instead, pass
the natural choice, puffs_usermount, and fetch puffs_cc via
puffs_cc_getcc() only in routines which actually need it.  This
not only simplifies code, but (thanks to the introduction of
puffs_cc_getcc()) enables constructs which weren't previously sanely
possible, say layering as a curious example.

There's still a little to do on this front, but this was the major
fs interface blast.
2007-11-30 19:02:28 +00:00
xtraeme 88696b51e4 Add support for Novatel Wireless HSDPA Modem to ugensa(4), patch
from Marcin Michal Jessa... thanks.
2007-11-29 18:38:22 +00:00
mjf 036409b859 Commit Caldera licensed documentation from 4.4BSD. This was taken from the
OpenBSD tree.

No objections on netbsd-docs.
2007-11-29 12:35:04 +00:00
plunky 736a9db087 Clean up the way that bluetooth drivers attach to the bluetooth stack,
to remove the frobbing that drivers must do in the hci_unit structure.

- driver provides a static const interface descriptor
- hci_unit is allocated by hci_attach() rather than part of softc
- statistics are compiled by driver and provided on request
- driver provides output methods and is responsible for output queue
- stack provides input methods and is responsible for input queue
- mutex is used to arbitrate device queue access
2007-11-28 20:16:11 +00:00
pooka efe797dc32 * version the registration interface
* destroy all created locks
2007-11-28 16:59:02 +00:00
pooka 6a3d9a187d Remove "puffs_cid" from the puffs interface following l-removal
from the kernel vfs interfaces.  puffs_cc_getcaller(pcc) can be
used now should the same information be desired.
2007-11-27 11:31:17 +00:00
elad 3862950e53 Add a NOTES section to the manual, indicating that kauth(9) is still under
active development and its ABI (and possibly API) may change between
NetBSD versions.

This is critical to, for example, LKMs, where there might be a case of them
being built using one version of the ABI and used on system with another.

The main concern for "ABI" here is the set of KAUTH_* actions and requests
that is (for now) an enum. This note is likely to be removed as kauth(9)
is stablized -- hopefully before NetBSD 5.0.

okay christos@
2007-11-27 10:50:09 +00:00
pooka 8a64ceed6a "struct lwp *l" is a goner from VFS/VOP interfaces. 2007-11-26 19:11:11 +00:00
elad 41b84354cb Deprecate KAUTH_REQ_SYSTEM_TIME_BACKWARDS, as it was merged into
KAUTH_REQ_SYSTEM_TIME_SYSTEM.
2007-11-25 09:39:26 +00:00
elad abb7851f4d Refactor time modification checks and place them in the secmodel code.
okay christos@
2007-11-25 00:35:26 +00:00
elad ea96710831 Fix typo. 2007-11-23 20:09:30 +00:00
uebayasi 22274752ee s, , , 2007-11-23 16:37:47 +00:00
elad 18558073a1 Kill another instance of KAUTH_GENERIC_ISSUSER. 2007-11-23 16:03:47 +00:00
xtraeme b21a1771fc The sysctl node is machdep.speedstep_state not machdep.speedstep. 2007-11-23 13:06:09 +00:00
xtraeme 4be59ff990 Explain a bit more about the speedstep function. 2007-11-23 13:05:04 +00:00
xtraeme edef3a5e60 typo: piipcib -> piixpcib. 2007-11-23 11:50:08 +00:00
xtraeme 0c6aa39b4f weasel is able to attach at pci since 2001, mention that on SYNOPSYS. 2007-11-23 11:40:50 +00:00
xtraeme f3d4243d05 It's wdogctl(8) and not wdogctl(4). 2007-11-23 11:37:57 +00:00
sborrill ccf6d08a57 i386 and amd64 share a bootloader, so this should work on both.
Thanks to xtraeme@ and bouyer@ for pointing out this oversight.
2007-11-22 15:27:22 +00:00
pooka a4b032e2c8 quick & dirty support & tests for ioctl 2007-11-22 11:28:48 +00:00
xtraeme efb076273b kthread_create1 is no more, ok thx. 2007-11-21 23:11:06 +00:00
elad 6887492c26 Make securelevel a "secmodel" of its own.
While it's true that it's part of the traditional 4.4BSD security model,
there may come a time where a different "primary" security model used for
fine-grained privileges (ie., splitting root's responsibilities to various
privileges that can be assigned) may want to still have a securelevel
setting.

Idea from Daniel Carosone:

  http://mail-index.netbsd.org/tech-security/2006/08/25/0001.html

The location of the removed files, for reference, was:

  src/secmodel/bsd44/secmodel_bsd44_securelevel.c
  src/secmodel/bsd44/securelevel.h
2007-11-21 22:49:05 +00:00
pooka 8bd7c98c05 A very terse manual for pud(4) (it leaves almost everything as
an exercise to the reader).
2007-11-21 19:10:23 +00:00
pooka b21e075586 Short description of putter(9) 2007-11-21 18:40:58 +00:00
pooka cf9f5c8530 Register a block device and support read/write to it. 2007-11-21 18:11:17 +00:00
jmmv 1a8b914c59 No need to set a value for TESTSDIR any more as this is explicitly set
wherever it is needed.
2007-11-21 15:40:09 +00:00
dsieger 1f9f59ed34 Remove extraneous .Ed 2007-11-21 14:21:31 +00:00