Commit Graph

110564 Commits

Author SHA1 Message Date
ru
223a628acf Fixed compilation warnings with option VGA_NO_MODE_CHANGE.
PR:		kern/71130
2004-12-15 13:49:25 +00:00
brian
b90cfd5af4 Use rc.subr
PR:		72505
Submitted by:	Amir Shalem <amir@active.ath.cx>
2004-12-15 12:39:28 +00:00
brueffer
77a79d8302 Fix typo in a comment.
MFC after:	3 days
2004-12-15 12:18:41 +00:00
brueffer
9c95e615d3 Bump .Dd before anyone notices. 2004-12-15 09:32:12 +00:00
brueffer
197a348d95 List the Adaptec SCSI RAID 2230SLP. 2004-12-15 09:29:47 +00:00
scottl
e3b5eed2fd Add the PCI ID for the Adaptec 2230SLP card.
Submitted by: Ray Gilstrap
2004-12-15 07:03:21 +00:00
ssouhlal
be55a34f7f If ferror is true, we must reset the error indicator.
Submitted by:	Liam J. Foy <liamfoy@sepulcrum.org>
Approved by:	grehan (mentor)
2004-12-15 06:24:57 +00:00
ssouhlal
5ec8391060 Use the SYSCTL_ADD_OID macro, instead of directly calling sysctl_add_oid().
Approved by:	anholt, grehan (mentor)
2004-12-15 06:22:33 +00:00
trhodes
d14f874c4f Add options recently added to make.conf. 2004-12-15 02:40:43 +00:00
peter
c171b522d6 Like on the ath_rate_onoe component, make this compile on amd64. Convert
pointers to an integer via uintptr_t.

Fix an apparent bug that caused a compile failure.
ieee80211_iterate_nodes() takes ic->ic_sta as its first argument on the
onoe module.  It had just 'ic' here in the same context, which was a
mismatched argument.
2004-12-15 02:32:27 +00:00
peter
adbd450602 Make this amd64-clean. sizeof is long on amd64, so things that do a printf
of a sizeof, need to use %z to get the correct type on all our platforms.
Also, convert integers<->pointers via uintptr_t.

(I think Sam's instructions were for me to commit this.  If I
 misunderstood, then I apologize in advance.)
2004-12-15 02:25:21 +00:00
peter
d9ed7c7f5e Add config hooks for amd64 atheros hal modules 2004-12-15 02:21:23 +00:00
brueffer
e7b2c42f69 Remove clauses 3 and 4 of the license.
Approved by:	Jason L. Wright (original author)
Reviewed by:	imp
Obtained from:	OpenBSD
MFC after:	3 days
2004-12-15 02:19:44 +00:00
trhodes
638e766377 Add a few options with regards to ppp(8) and traceroute.
Sort the list, please keep this list sorted.

PR:		48569
2004-12-15 02:10:50 +00:00
sam
73aa7c6ed2 bring in rijndael crypto code to satisfy dependency: should
break rijndael out into a separate module a la rc4 but several
other cases need to be fixed also so for now do as others do
2004-12-15 01:30:38 +00:00
rik
b9436ee94f Bring back ability to use FR support with sppp from Cronyx. 2004-12-14 23:13:08 +00:00
simon
61ee119d00 - Auto generate device listings for the pst(4) and vpo(4) device
drivers.

MFC after:	1 week
2004-12-14 22:21:51 +00:00
simon
7ab8b3ebd0 - Add a HARDWARE section which lists supported devices.
MFC after:	1 week
2004-12-14 22:20:41 +00:00
simon
a91d70b455 - Add a HARDWARE section which lists supported devices.
MFC after:	1 week
2004-12-14 22:07:06 +00:00
phk
929d6ac8b0 white space 2004-12-14 21:35:00 +00:00
phk
d612258e38 Implement simpler panics for VOP_{read,write} on fifos. 2004-12-14 21:30:45 +00:00
phk
eab55e1589 Fix a deadlock I introduced this morning.
Mostly from:	tegge
2004-12-14 20:48:40 +00:00
brueffer
ef59040775 - Xref fwip(4)
- bump .Dd

MFC after:	3 days
2004-12-14 20:44:37 +00:00
brueffer
7fb8372fa9 - Xref fwip(4)
- bump .Dd

MFC after:	3 days
2004-12-14 19:57:42 +00:00
brueffer
9dd9589dad - remove nonexistant "device fwohci"
- sort SYNOPSIS devices
- Xref fwe(4)
- bump .Dd

MFC after:	3 days
2004-12-14 19:56:54 +00:00
njl
55134c7d6f Add more information about debugging output. 2004-12-14 19:55:54 +00:00
brueffer
1a87fa79a5 - remove nonexistant "device fwohci"
- sort SYNOPSIS devices
- capitalize Ethernet
- Xref fwip(4)
- bump .Dd

MFC after:	3 days
2004-12-14 19:55:39 +00:00
brueffer
65f386930a - Xref fwip(4) and eui64(5)
- correct a grammar nit
- bump .Dd

MFC after:	3 days
2004-12-14 19:53:30 +00:00
brueffer
b130dc201d fwip(4) supports polling.
MFC after:	3 days
2004-12-14 19:27:16 +00:00
cognet
7ce4a54e10 Enable interrupts once the active ones have been masked. 2004-12-14 18:57:21 +00:00
cognet
c372644159 Update the sp after popping the regs.
This is a good candidate for the golden pointy hat awards.
2004-12-14 18:45:05 +00:00
rik
8325619210 Kill double inclusion for <netinet/in.h> and <netinet/in_systm.h>. 2004-12-14 18:18:54 +00:00
trhodes
3128694fc7 Some formatting, whitespace and mdoc(7) fixes.
Submitted by:	A manual page, ru of course.
2004-12-14 18:07:46 +00:00
mdodd
d793b0d8c8 Add a callout to dump card status on command queue timeouts. 2004-12-14 17:45:30 +00:00
mdodd
fb985e2a0c Modify ida_v3_done() to treat FIFO status of -1 as FIFO empty (0).
This is what ida_v4_done() does and seems to be necessary with some
firmware versions on v3 devices.
2004-12-14 17:41:51 +00:00
mdodd
e49536d312 Reformat arguments bus_dma_tag_create(). 2004-12-14 17:23:01 +00:00
simon
58a6bbdf3c Auto generate device listings for the snd_maestro(4) and snd_maestro4(4)
device drivers.

MFC after:	1 week
2004-12-14 16:23:38 +00:00
simon
ccd5b6eb0d - Add a HARDWARE section which lists supported devices.
- "device sound" does not pull in sound device drivers (like "device
  pcm" used to do), so do not mention that option.
- Make the document title more like the title in the other sound
  device drivers.

MFC after:	1 week
2004-12-14 16:17:12 +00:00
simon
fa3ecfedb3 Add manual page for snd_maestro(4).
Submitted by:	Jorge Mario G. Mazo <jgutie11@eafit.edu.co> (original version)
PR:		docs/74546
MFC after:	1 week
2004-12-14 16:11:14 +00:00
rse
b4c7840f00 Improve the RC framework for the clean booting/shutdown of Jails:
1. Feature: for flexibility reasons and as a prerequisite to clean
   shutdowns, allow the configuration of a stop/shutdown command
   via rc.conf variable "jail_<name>_exec_stop" in addition to the
   start/boot command (rc.conf variable "jail_<name>_exec_start"). For
   backward compatibility reasons, rc.conf variable "jail_<name>_exec"
   is still supported, too.

2. Debug: Add the used boot/shutdown commands to the debug output of
   the /etc/rc.d/jail script, too.

3. Security: Run the Jail start/boot command in a cleaned environment
   to not leak information from the host to the Jail during startup.

4. Feature: Run the Jail stop/shutdown command "jail_<name>_exec_stop" on
   "/etc/rc.d/jail stop <name>" to allow a graceful shutdown of the Jail
   before its processes are just killed.

5. Bugfix: When killing the remaining Jail processes give the processes
   time to actually perform their termination sequence. Without this the
   subsequent umount(8) operations usually fail because the resources
   are still in use. Additionally, if after trying to TERM-inate the
   processes there are still processes hanging around, finally just KILL
   them.

6. Bugfix: In rc.shutdown, if running inside a Jail, skip the /etc/rc.d/*
   scripts which are flagged with the KEYWORD "nojail" to allow the
   correct operation of rc.shutdown under jail_<name>_exec_stop="/bin/sh
   /etc/rc.shutdown". This is analogous to what /etc/rc does inside a Jail.

Now the following typical host-configuration for two Jails works as
expected and correctly boots and shutdowns the Jails:

-----------------------------------------------------------
#  /etc/rc.conf:
jail_enable="YES"
jail_list="foo bar"
jail_foo_rootdir="/j/foo"
jail_foo_hostname="foo.example.com"
jail_foo_ip="192.168.0.1"
jail_foo_devfs_enable="YES"
jail_foo_mount_enable="YES"
jail_foo_exec_start="/bin/sh /etc/rc"
jail_foo_exec_stop="/bin/sh /etc/rc.shutdown"
jail_bar_rootdir="/j/bar"
jail_bar_hostname="bar.example.com"
jail_bar_ip="192.168.0.2"
jail_bar_devfs_enable="YES"
jail_bar_mount_enable="YES"
jail_bar_exec_start="/path/to/kjailer -v"
jail_bar_exec_stop="/bin/sh -c 'killall kjailer && sleep 60'"
-----------------------------------------------------------
#  /etc/fstab.foo
/v/foo /j/foo/v/foo nullfs rw 0 0
-----------------------------------------------------------
#  /etc/fstab.bar
/v/bar /j/bar/v/bar nullfs rw 0 0
-----------------------------------------------------------

Reviewed by:	freebsd-hackers
MFC after:	2 weeks
2004-12-14 14:36:35 +00:00
simon
3bb1636412 Add snd_audiocs(4). 2004-12-14 13:12:29 +00:00
simon
c76ba9563e - Update usage to reflect the current reality.
- Fix a bug where manual pages which had a "_" in their name did not
  get proper architecture setting.

MFC after:	1 week
2004-12-14 13:07:58 +00:00
maxim
8e599b039a Add NetBSD 2.0. 2004-12-14 12:30:43 +00:00
jeff
c94fadce10 - Garbage collect several unused members of struct kse and struce ksegrp.
As best as I can tell, some of these were never used.
2004-12-14 10:53:55 +00:00
jeff
422a07b8e1 - In kseq_choose(), don't recalculate slice values for processes with a
nice of 0.  Doing so can cause an infinite loop because they should be
   running, but a nice -20 process could prevent them from doing so.
 - Add a new flag KEF_PRIOELEV to flag a thread that has had its priority
   elevated due to priority propagation.  If a thread has had its priority
   elevated, we assume that it must go on the current queue and it must
   get a slice.
 - In sched_userret() if our priority was elevated and we shouldn't have
   a timeslice, yield here until we should.

Found/Tested by:	glebius
2004-12-14 10:34:27 +00:00
phk
ccf97ed87f Be a bit more assertive about vnode bypass. 2004-12-14 09:32:18 +00:00
ru
2c72e53bd3 Minor mdoc(7) tweaks, excellent work Nate! 2004-12-14 09:24:48 +00:00
phk
8a94ce5ea1 Add a new kind of reference count (fd_holdcnt) to struct filedesc
which holds on to just the data structure and the mutex.  (The
existing refcount (fd_refcnt) holds onto the open files in the
descriptor.)

The fd_holdcnt is protected by fdesc_mtx, fd_refcnt by FILEDESC_LOCK.

Add fdhold(struct proc *) which gets a hold on the filedescriptors of
the specified proc..

Add fddrop(struct filedesc *) which drops the fd_holdcnt and if zero
destroys the mutex and frees the memory.

Initialize the fd_holdcnt to one in fdinit().  Normal operations on
the filedesc structure will not change it.

In fdfree() use fddrop() to dispose of the mutex and structure.  Hold
the FILEDESC_LOCK() until we have cleaned out the contents and carefully
set the fields to null values during cleanup.

Use fdhold()/fddrop() in mountcheckdirs() and sysctl_kern_file().
2004-12-14 09:09:51 +00:00
ru
8a05c599fb mdoc(7) nit: Removed redundant .Pp call. 2004-12-14 09:06:44 +00:00
phk
8986ab0ecf Make fdesc_mtx private to kern_descrip.c now that the flock has come home. 2004-12-14 08:44:51 +00:00