summaryrefslogtreecommitdiffstats
path: root/sys
Commit message (Collapse)AuthorAgeFilesLines
* Make vm_pageout_page_free() static.alc2003-01-142-2/+2
|
* Since reseting the SCSI busses via the passthrough interface usuallyscottl2003-01-131-7/+12
| | | | | | | | | confuses the controller, tell CAM not to do it. Also report the correct error condition to CAM when it tries to probe a target that doesn't exists. This should make the CAM interface less risky to use. MFC After: 3 days
* It is possible for an active aio to prevent shared memory from beingdillon2003-01-137-27/+32
| | | | | | | | | | | | | dereferenced when a process exits due to the vmspace ref-count being bumped. Change shmexit() and shmexit_myhook() to take a vmspace instead of a process and call it in vmspace_dofree(). This way if it is missed in exit1()'s early-resource-free it will still be caught when the zombie is reaped. Also fix a potential race in shmexit_myhook() by NULLing out vmspace->vm_shm prior to calling shm_delete_mapping() and free(). MFC after: 7 days
* Apply bandaid to bring svr4_sys_waitsys() in line with exit1(). Thisdillon2003-01-131-1/+4
| | | | | | routine really need to be gutted and merged with exit1(). Reviewed by: jhb
* Even if the permissions deny it, a process should be allowed tophk2003-01-131-2/+13
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | access its controlling terminal. In essense, history dictates that any process is allowed to open /dev/tty for RW, irrespective of credential, because by definition it is it's own controlling terminal. Before DEVFS we relied on a hacky half-device thing (kern/tty_tty.c) which did the magic deep down at device level, which at best was disgusting from an architectural point of view. My first shot at this was to use the cloning mechanism to simply give people the right tty when they ask for /dev/tty, that's why you get this, slightly counter intuitive result: syv# ls -l /dev/tty `tty` crw--w---- 1 u1 tty 5, 0 Jan 13 22:14 /dev/tty crw--w---- 1 u1 tty 5, 0 Jan 13 22:14 /dev/ttyp0 Trouble is, when user u1 su(1)'s to user u2, he cannot open /dev/ttyp0 anymore because he doesn't have permission to do so. The above fix allows him to do that. The interesting side effect is that one was previously only able to access the controlling tty by indirection: date > /dev/tty but not by name: date > `tty` This is now possible, and that feels a lot more like DTRT. PR: 46635 MFC candidate: could be.
* We can get past here on a normal vnode as well, so use VOP_STRATEGY if so.phk2003-01-131-1/+4
|
* Fix interactive booting:imp2003-01-132-4/+8
| | | | | | | | | | | | | o Revision 1.38 introduced the -n flag. It conflicted with the RB_BOOTINFO flag, so was in effect always on. Change the -n flag to be bit 0x1c instead of 0x1f. This also had the consequence that a mal-formed /boot.config would render the system unbootable because the user was unable to enter anything at all on the command line. o Remove the initialization of opt to be RB_BOOTINFO since we filter that bit out and do not otherwise use it. Reviewed by: jhb MFC after: 3 days
* OK Ok, so I didn't check the NO_GEOM case for the final version...phk2003-01-131-3/+3
| | | | Stumbled on by: bde
* Add Realtek ALC650 id.orion2003-01-131-0/+1
| | | | | Submitted by: "Mikko S. Hyvarinen" <morphy@morphy.iki.fi> MFC after: 5 days
* Add nForce2 device id.orion2003-01-131-0/+4
| | | | | Submitted by: "Mikko S. Hyvarinen" <morphy@morphy.iki.fi> MFC after: 5 days
* Enable the new h0h0magic code which on GEOM kernels make the md(4)phk2003-01-131-3/+0
| | | | driver a _real_ GEOM driver.
* Minimal fix for DV part.simokawa2003-01-134-32/+84
| | | | | | | | | - Don't panic on contigmalloc failure. - Calculate timestamp by feedforward rather than feedback which depends on unreliable interrupt timing. - Overwrite timestamp in CIP header correctly. - Add debug code for timestamp synchronization. - Add comments.
* Merge big endian and little endian case.simokawa2003-01-131-35/+42
| | | | Fill fdf bit fields and others.
* style(9) fixes, mostly add parens around return arguments.alfred2003-01-131-63/+65
|
* Always issue ioctls as BIO_GEATTR requests. The direction of data copies onphk2003-01-131-4/+6
| | | | | | | ioctls are no reliable indication of the ioctls "set" or "get" nature or if such simplistic categories can even be applied. MFC candidate: boot0cfg issue.
* Fix NewReno.hsu2003-01-135-89/+94
| | | | Reviewed by: Tom Henderson <thomas.r.henderson@boeing.com>
* Add a mutex around the per unit bioqueue.phk2003-01-131-12/+28
| | | | | | | | Only grab giant in the per unit kthread for SWAP and VNODE backed devices. Initialize the bioq before the kthread gets a chance to study it. Don't lock Giant in mddone_swap, we shouldn't need it.
* Remove four members of struct nameidata which have been commentedphk2003-01-131-13/+0
| | | | | | | out since rev 1.1 (24 may 1994) of this file. Add a nail to the K&R coffin by removing the #ifdef'ed K&R function declaration for NDINIT.
* Remove g_silence(). It does not do anything anymore.phk2003-01-133-15/+1
|
* Fix typo.phk2003-01-131-1/+1
|
* Add opt_geom.h to the list.phk2003-01-131-1/+1
|
* Remove the printf which announces the creation of malloc disks: it isphk2003-01-131-1/+0
| | | | | | | | inconsistent when we do not do it for swap or vnode. We still printf for preloaded disks because of the weak debugging options people have in embedded/tiny environments where this is usually used.
* Fixed typo and style.nyan2003-01-131-2/+2
| | | | Submitted by: Toru Morimoto <too@os.gulf.or.jp>
* Quirk for Sony USB disk-on-key device.njl2003-01-131-0/+8
| | | | | | PR: kern/46386 Submitted by: dillon MFC after: 3 days
* Enable rl(4). It is now fully working using busdma.obrien2003-01-131-1/+1
|
* Regenerateobrien2003-01-131-1/+3
|
* - Unbreak world. I did not notice that libkvm was still used in some placesjeff2003-01-132-7/+6
| | | | | | to access the pctcpu. This will have to be sorted out more later as the new scheduler requires a procedural interface for this data. A more complete solution will follow.
* Correct an off-by-one error in the calculation of the number of interruptbenno2003-01-131-1/+1
| | | | resources we're managing.
* Bow to the whining masses and change a union back into void *. Retaindillon2003-01-1347-233/+203
| | | | | removal of unnecessary casts and throw in some minor cleanups to see if anyone complains, just for the hell of it.
* Make vm_page_alloc() return PG_ZERO only if VM_ALLOC_ZERO is specified.alc2003-01-121-4/+5
| | | | | | | | | | The objective being to eliminate some cases of page queues locking. (See, for example, vm/vm_fault.c revision 1.160.) Reviewed by: tegge (Also, pointed out by tegge that I changed vm_fault.c before changing vm_page.c. Oops.)
* Add code to make md(4) a GEOM device driver instead of relying inphk2003-01-121-4/+134
| | | | | | the disk mini-layer. This is currently not enabled.
* Partial support for the nVidia nForce2 chipset's on-board Broadcom/Altima PHYobrien2003-01-124-0/+7
| | | | | | | and 3com MAC. Specifications for the Altima PHY are available at: http://www.altimacom.com/products/ac101L.html Submitted by: Mikko S. Hyvarinen <morphy@morphy.iki.fi>
* - Move ke_pctcpu and ke_cpticks into the scheduler specific datastructure.jeff2003-01-122-17/+30
| | | | | This will prevent access through mechanisms other than the published interfaces.
* Shift things around a bit in preparation for future evilness.phk2003-01-121-43/+48
|
* Allowing nent < 0 in aio_suspend() and lio_listio() is just asking fortjr2003-01-121-2/+2
| | | | trouble. Return EINVAL instead.
* Remove "XXX undocumented" comment from lio_listio().tjr2003-01-121-1/+1
|
* Make compile cleanly when USB_DEBUG is defined.imp2003-01-121-1/+2
|
* vm_fault_copy_entry() needn't clear PG_ZERO because it didn't passalc2003-01-121-3/+0
| | | | VM_ALLOC_ZERO to vm_page_alloc().
* vm_hold_load_pages() needn't clear PG_ZERO because it didn't passalc2003-01-121-1/+0
| | | | VM_ALLOC_ZERO to vm_page_alloc(). (PG_ZERO is clear by default.)
* Merged from sys/isa/fd.c revision 1.244.nyan2003-01-122-0/+6
|
* Change struct file f_data to un_data, a union of the correct structdillon2003-01-1247-201/+220
| | | | | | | | | | pointer types, and remove a huge number of casts from code using it. Change struct xfile xf_data to xun_data (ABI is still compatible). If we need to add a #define for f_data and xf_data we can, but I don't think it will be necessary. There are no operational changes in this commit.
* Bail out of fd_clone() if the parsed unit number doesn't match ourjoerg2003-01-112-0/+6
| | | | | | | | | | expectation. This solves the problem, where in a constellation with two (or more) drives, an attempt is made to access a device name for that device using a historic partition letter, like /dev/fd1c. This is supposed to create a symlink to the master device, but previously, the link was always created to /dev/fd0, even if the request was for fd1*.
* Add support for the Intel 82820 UP-only AGP bridge.anholt2003-01-112-0/+8
| | | | | | PR: 41466 Submitted by: NIIMI Satoshi <sa2c@sa2c.net> MFC after: 1 week
* In vm_page_alloc(), fuse two if statements that are conditioned on the samealc2003-01-111-8/+3
| | | | expression.
* FBSDIDize and clean up whitespace nits.des2003-01-111-30/+25
|
* Read sanpei's mind, and unbreak the build.des2003-01-111-2/+3
|
* Change to correct card entry. RATOC REX-R280 is 10Base-T Ether Card,shiba2003-01-111-1/+1
| | | | RATOC REX-9530 is SCSI2 Card.
* Regen.shiba2003-01-111-3/+10
|
* RATOC REX-R280(10Base-T Ether Card) and REX-9530(SCSI2 Card) haveshiba2003-01-111-1/+4
| | | | same product id. So use CIS info(PCCARD_CISTPL_VERS_1).
* Fix kernel build.mux2003-01-111-1/+1
| | | | Pointy hats to: dillon, Hiten Pandya <hiten@unixdaemons.com>
OpenPOWER on IntegriCloud