summaryrefslogtreecommitdiffstats
path: root/sys
Commit message (Collapse)AuthorAgeFilesLines
* Remove the hack-around for the slice/label code, it didn'tphk2001-05-291-11/+1
| | | | cover the hole.
* Since the netexport struct was centralised to 'struct mount',iedowse2001-05-291-1/+1
| | | | | | | | | | | | | attempting to remove nonexistant exports with MNT_DELEXPORT returns an error; before this change it always succeeded. This caused mountd(8) to log "can't delete exports for /whatever" warnings. Change the error code from EINVAL to a more specific ENOENT, and make mountd ignore this error when deleting the export list. I could have just restored the previous behaviour of returning success, but I think an error return is a useful diagnostic. Reviewed by: phk
* Fix bug in debug codesos2001-05-291-2/+2
|
* Fix for the fixate problem on the Yamaha burners.sos2001-05-292-4/+2
|
* Add B460800 defineache2001-05-291-0/+1
|
* Add more high speedsache2001-05-291-3/+5
| | | | Fix tabs
* Don't hold the VM lock across VOP's and other things that can sleep.jhb2001-05-291-2/+19
|
* Remove a comment which was past its shelf life.phk2001-05-291-1/+0
| | | | | PR: 18750 Submitted by: Tony Finch <dot@dotat.at>
* Remove unused d_parms_t typedefphk2001-05-292-2/+0
| | | | Spotted by: grog
* Revert the ugly band-aide[tm] hack of rev 1.12.obrien2001-05-291-6/+2
| | | | The offending loader.4th commit (rev 1.20) has been backed out.
* Revert 1.20, as it causes mysterious problems to the Alpha people.dcs2001-05-291-3/+0
|
* Spring MegaChange #1.mjacob2001-05-289-255/+565
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | ---- Make a device for each ISP- really usable only with devfs and add an ioctl entry point (this can be used to (re)set debug levels, reset the HBA, rescan the fabric, issue lips, etc). ---- Add in a kernel thread for Fibre Channel cards. The purpose of this thread is to be woken up to clean up after Fibre Channel events block things. Basically, any FC event that casts doubt on the location or identify of FC devices blocks the queues. When, and if, we get the PORT DATABASE CHANGED or NAME SERVER DATABASE CHANGED async event, we activate the kthread which will then, in full thread context, re-evaluate the local loop and/or the fabric. When it's satisfied that things are stable, it can then release the blocked queues and let commands flow again. The prior mechanism was a lazy evaluation. That is, the next command to come down the pipe after change events would pay the full price for re-evaluation. And if this was done off of a softcall, it really could hang up the system. These changes brings the FreeBSD port more in line with the Solaris, Linux and NetBSD ports. It also, more importantly, gets us being more proactive about topology changes which could then be reflected upwards to CAM so that the periph driver can be informed sooner rather than later when things arrive or depart. --- Add in the (correct) usage of locking macros- we now have lock transition macros which allow us to transition from holding the CAM lock (Giant) and grabbing the softc lock and vice versa. Switch over to having this HBA do real locking. Some folks claim this won't be a win. They're right. But you have to start somewhere, and this will begin to teach us how to DTRT for HBAs, etc. -- Start putting in prototype 2300 support. Add back in LIP and Loop Reset as async events that each platform will handle. Add in another int_bogus instrumentation point. Do some more substantial target mode cleanups. MFC after: 8 weeks
* Make the beep duration independent of HZ.phk2001-05-282-2/+3
| | | | | | PR: 25201 Submitted by: Akio Morita amorita@meadow.scphys.kyoto-u.ac.jp MFC after: 1 week
* Clarify that the old CD-ROM drivers are only for non-ATAPI drives.phk2001-05-282-6/+6
| | | | | | PR: 25369 Submitted by: Matt Emmerton matt@gsicomp.on.ca MFC after: 1 week
* With the new kernel dev_t conversions done at release 4.X,phk2001-05-281-0/+1
| | | | | | | | | | | | | | | | | | | | | | it becomes possible to trap in ptsstop() in kern/tty_pty.c if the slave side has never been opened during the life of a kernel. What happens is that calls to ttyflush() done from ptyioctl() for the controlling side end up calling ptsstop() [via (*tp->t_stop)(tp, <X>)] which evaluates the following: struct pt_ioctl *pti = tp->t_dev->si_drv1; In order for tp->t_dev to be set, the slave device must first be opened in ttyopen() [kern/tty.c]. It appears that the only problem is calls to (*tp->t_stop)(tp, <n>), so this could also happen with other ioctls initiated by the controlling side before the slave has been opened. PR: 27698 Submitted by: David Bein bein@netapp.com MFC after: 6 days
* Name this module msdos.ko so that mount_msdos(8) can autoloadru2001-05-281-1/+1
| | | | | | | | | | | | it with vfsload("msdos"). (The proper fix would be to rename the `msdos' file system to `msdosfs' in VFS_SET(), and mount_msdos(8) to mount_msdosfs(8). But that would break too many existing fstab(5) setups, and would require a lot of unnecessary documentation and code msdos -> msdosfs changes.) Noticed by: markm
* The disklabel/slice code is more twisted than I thought. Revert tophk2001-05-281-0/+1
| | | | calling the cdevsw_add() unconditionally.
* One needs to introduce things with a `.file' directive before trying toobrien2001-05-284-3/+15
| | | | | do a .loc on it. BTW, the .loc needs to be in a .text section. gas 2.11.0 catches these oversights where previous versions did not.
* grep -v offending lines from loader.4th until the master version of itobrien2001-05-281-2/+6
| | | | is fixed.
* Add the generated help files to CLEANDIRS.obrien2001-05-281-0/+1
| | | | Found by: rm -rf /usr/obj/usr/src/sys/boot ; make ; make clean ; cvs -q up
* Turns out that one bit isn't enough. Introduce two new fieldsimp2001-05-283-16/+39
| | | | | | | | | | | | | | csc_route and func_route to hold the way that each interrupt is routed. csc is Card Status Change in the datasheets and standard, but is called "Management Interrupt" in FreeBSDese. There are three types of interrupt routing: ISA parallel, PCI parallel and ISA serial (some chipsets support other types as well, but I don't plan on supporting them). When we try to allocate an interrupt, and the type for that interrupt is pci_parallel, allow it to be shared by oring in RF_SHAREABLE to the flags argument. Introduce pcic_alloc_resource to allow this to happen.
* Handle NULL struct device *sbrian2001-05-281-2/+2
|
* In sys/boot/common/module.c, near line 105 a request for a rawjesper2001-05-271-1/+1
| | | | | | | | | | | | | | | | | file is processed by passing its name in argv[1]: return(mod_loadobj(typestr, argv[1])); however, it is not tested to see if argv[1] actually is defined. At best, mod_loadobj() near line 244 returns an error like "can't find 'garbage'" but if the "filename" entered is sufficiently long, some buffer gets overrun. Of course, "load -t filename" is actually a typo because we meant to type "load -t mfs_root filename"; nevertheless, a hung machine seems like too harsh a punishment for such a small typo... PR: i386/27693 Submitted by: Adrian Steinmann <ast@marabu.ch> MFC after: 1 week
* finally fix intr routing on alphas such as the as500 after months ofgallatin2001-05-272-3/+12
| | | | | | | | | | | | | | | | | | | breakage: - call PCIB_ROUTE_INTERRUPT() regardless of how valid the intline looks. Some alphas leave garbage in the intline and leave the intr mapping to OS platform support routines that map slots/buses to intlines - Down in the alpha pci code, first try platform.pci_intr_route() and if it doesn't exist or returns garbage, just read the intline out of config space. tested on AS500 (garbage in intline) and UP1000 (PC-like, intline is valid) Note that a nice little hack like the APIC_IO section of pci_cfgregread() is not workable. This is because the calling interface for alpha_pci_route_interrupt() requires us to figure out the bus/slot/etc from a device_t. At pci_read_device() time, we don't have a device_t for the bus/slot/func in question.
* o uifree() the cr_ruidinfo in crfree() as well as cr_uidinfo now that the ↵rwatson2001-05-271-0/+2
| | | | | | | | real uid info is in the credential also. Submitted by: egge
* Close the opening comment line on these two files that mysteriouly vanished.scottl2001-05-272-2/+2
|
* Fix reboot buglet when BOOT_BTX_NOHANG is defined.rnordier2001-05-272-2/+2
| | | | Submitted by: Umesh Krishnaswamy <umesh@juniper.net>
* beginnings of virtual playback channel supportcg2001-05-2710-212/+927
| | | | | | | | | | | | | | | | | instead of using two malloced arrays for storing channel lists, use an slist. convert the sndstat device to use sbufs and optionally provide more detail about channel state. vchans are software mixed playback channels. they are not enabled by this commit. they use the feeder infrastructure to emulate normal playback channels in a manner transparent to applications, whilst providing as many channels are desired, especially suitable for devices with only one hardware playback channel. in the future they will provide additional features. those wishing to test this functionality will need to add vchan.c to sys/conf/files and use 'sysctl -w hw.snd.pcm0.vchans' to enable it. blocksize and auto-rate selection are not yet supported.
* As in with ":", check dictionary space and increase it if necessary beforedcs2001-05-271-0/+2
| | | | "create".
* add a new method for retrieving feeder parameterscg2001-05-273-4/+39
|
* don't erase info in sndbuf_setup()cg2001-05-272-6/+24
| | | | | set free'd pointers to NULL in sndbuf_free() add a new function
* Allow a shareable interrupts. Note, the bridge must set this flag orimp2001-05-272-15/+16
| | | | | | | | the irq will be unshareable, as things are now. More work likely is needed, but this is a good checkpoint. # pcic_pci.c is getting closer :-)
* Print out the asc/ascq and description even when both the asc and ascqken2001-05-271-4/+2
| | | | | are zero. This is so that users will see the "no addtional sense" printout and know that they have the full sense information.
* In the VIRTUAL_TTY macro, add a check to make sure that the result ofdd2001-05-271-1/+2
| | | | | | | | | | | SC_DEV isn't NULL; if it is, evaluate to NULL and don't dereference NULL. Callers of VIRTUAL_TTY must already check for the result being NULL since si_tty can be NULL, so this should be safe. This fixes a panic when trying to switch to a different vty in an environment such as userconfig (-c option to the kernel). PR: 26508
* Add a CONS_CLRHIST ioctl which instructs syscons to clear the historydd2001-05-272-0/+9
| | | | | | | (scroll-back) buffer. PR: 27616 Reviewed by: ru
* Acquire vm_mtx before calling vm_pager_deallocate.dd2001-05-271-1/+7
| | | | Reviewed by: phk
* Don't copy the trailing zero in readlink, it confuses namei().phk2001-05-261-1/+1
| | | | PR: 27656
* o pcred-removal changes included modifications to optimize the setting ofrwatson2001-05-261-7/+8
| | | | | | | | | | | | the saved uid and gid during execve(). Unfortunately, the optimizations were incorrect in the case where the credential was updated, skipping the setting of the saved uid and gid when new credentials were generated. This change corrects that problem by handling the newcred!=NULL case correctly. Reported/tested by: David Malone <dwmalone@maths.tcd.ie> Obtained from: TrustedBSD Project
* o Include file to provide prototypes for regression testing-specificrwatson2001-05-261-0/+38
| | | | | | | system calls/et al. Not much in there just yet, but will most likely grow. Obtained from: TrustedBSD Project
* - sys/n[tw]fs moved to sys/fs/n[tw]fsru2001-05-2638-8717/+55
| | | | - /usr/include/n[tw]fs moved to /usr/include/fs/n[tw]fs
* add Dualmode Zoom/FaxModem 56K (internal) Model 2919sanpei2001-05-262-0/+2
| | | | | PR: kern/27476 Submitted by: Eric Beyer <lnxfrk@earthlink.net>
* Dang, I lost the sign in that brucification. DTRT with PCATCH.phk2001-05-261-17/+17
| | | | Cut Out In Cardboard by: bde
* Currently, each wireless networking driver has it's own control programphk2001-05-2612-9/+1168
| | | | | | | | | | | | despite the fact that most people want to set exactly the same settings regardless of which card they have. It has been repeatidly suggested that this configuration should be done via ifconfig. This patch implements the required functionality in ifconfig and add support to the wi and an drivers. It also provides partial, untested support for the awi driver. PR: 25577 Submitted by: Brooks Davis <brooks@one-eyed-alien.net>
* Create a general facility for making dev_t's depend on anotherphk2001-05-268-44/+56
| | | | | | | | | | | | | | | | | | | | | | | | | | dev_t. The dev_depends(dev_t, dev_t) function is for tying them to each other. When destroy_dev() is called on a dev_t, all dev_t's depending on it will also be destroyed (depth first order). Rewrite the make_dev_alias() to use this dependency facility. kern/subr_disk.c: Make the disk mini-layer use dependencies to make sure all relevant dev_t's are removed when the disk disappears. Make the disk mini-layer precreate some magic sub devices which the disk/slice/label code expects to be there. kern/subr_disklabel.c: Remove some now unneeded variables. kern/subr_diskmbr.c: Remove some ancient, commented out code. kern/subr_diskslice.c: Minor cleanup. Use name from dev_t instead of dsname()
* Remove pcm hints here now that it's gone from GENERIC.jkh2001-05-262-8/+0
| | | | Reminded-by: bde
* Update reality in the strings commentdougb2001-05-262-2/+2
|
* catch up to i386: Don't acquire Giant just to print the trap and panicgallatin2001-05-251-2/+0
|
* make this compile.gallatin2001-05-251-1/+1
|
* track the One True Architecture (i386)mjacob2001-05-251-4/+4
|
* Fix a minor formatting nitimp2001-05-251-1/+1
|
OpenPOWER on IntegriCloud