summaryrefslogtreecommitdiffstats
path: root/sys
Commit message (Collapse)AuthorAgeFilesLines
* Move objflags from vinumvar.h to vinumobj.h in preparation forgrog2001-05-231-45/+1
| | | | | | | requiring fewer header files for userland programs. Remove the gross debug device/non-debug device hack used to recognize whether the kernel module was in sync with the userland module.
* Move objflags from vinumvar.h to vinumobj.h in preparation forgrog2001-05-231-2/+37
| | | | requiring fewer header files for userland programs.
* Move external declaration to vinumhdr.h.grog2001-05-231-1/+2
|
* Set flag VF_HASDEBUG in vinum_conf to indicate that the module wasgrog2001-05-231-10/+6
| | | | | | | | | | | | compiled with debug support. This can be used by userland programs to recognize which ioctls the module supports. As a result, remove the gross debug device/non-debug device hack used to recognize whether the kernel module was in sync with the userland module. Replace explicit references to major/minor numbers of vinum superdevice with the VINUM_SUPERDEV macro written for that purpose.
* Add better support for the Ricoh 5C296 and 5C396 chips. These chipsimp2001-05-234-9/+28
| | | | | | have a slightly different 3.3V support than the other clones, so compensate as best we can. Note: 3.3V support is untested since I do not have any 3.3V cards that I know of to test it with.
* Add recognition for Toshiba ToPIC-100.imp2001-05-232-0/+4
| | | | Submitted by: Shimodaira Toshio <tshimod1@ym.nsw.co.jp> in [bsd-nomads:15589]
* Add a makefile for snp(4) since it can be compiled as a module now.dd2001-05-221-0/+9
|
* New header file.grog2001-05-221-0/+54
| | | | | | Missed by: Szilveszter Adam <sziszi@petra.hos.u-szeged.hu> David Wolfskill <david@catwhisker.org> Pointy hat to: grog
* Unifdef DEV_SNP; snp(4) no longer requires these ugly hacks.dd2001-05-221-27/+0
| | | | Silence by: -hackers, -audit
* Convert this driver to (ab?)use line disciplines to get the input itdd2001-05-222-34/+168
| | | | | | | needs instead of relying on idiosyncratic hacks in the tty subsystem. Also add module code since this can now be compiled as a module. Silence by: -hackers, -audit
* Convert npx interrupts into traps instead of vice versa. This is muchbde2001-05-2214-321/+314
| | | | | | | | simpler for npx exceptions that start as traps (no assembly required...) and works better for npx exceptions that start as interrupts (there is no longer a problem for nested interrupts). Submitted by: original (pre-SMPng) version by luoqi
* aquire vm mutex in swp_pager_async_iodone. Don't call swp_pager_async_iodonealfred2001-05-221-2/+3
| | | | with the mutex held.
* grab the vm mtx around exec_new_vmspace()gallatin2001-05-221-0/+2
|
* MALLOC -> malloc, FREE -> freebrian2001-05-221-5/+5
|
* M_COPY_PKTHDR has to be done before MCLGET.ume2001-05-221-4/+5
| | | | Obtained from: KAME
* Hide UNION in opt_dontuse.h (see vfs_syscalls.c,v 1.109).ru2001-05-221-4/+1
|
* Remove duplicate include and sort includes.jhb2001-05-221-3/+2
|
* Sort includes.jhb2001-05-221-1/+1
|
* Add vinumobj.h to SRCS.grog2001-05-221-2/+2
|
* Remove Malloc definitions (now in vinumext.h)grog2001-05-221-21/+2
|
* Unlock the VM lock at the end of munlock() instead of locking it again.jhb2001-05-221-1/+1
|
* Sort includes from previous commit.jhb2001-05-221-1/+1
|
* Correct the vm_mtx handling; specifically, don't acquire it indd2001-05-221-5/+13
| | | | | | | | shm_deallocate_segment because shmexit_myhook calls it, and the latter should always be called with it already held. Submitted by: dwmalone, dd Approved by: alfred
* Add a field 'version' to vinum_conf. This field is a constant whichgrog2001-05-221-191/+30
| | | | | | | | | | | | | gets incremented every time the kernel-userland interface changes. This enables vinum(8) to check for the correct kernel version and to produce a useful message if it doesn't match. Requested by: Too many to count. Move the definitions of struct drive, sd, plex and volume to vinumobj.h. Add a new debug flag, DEBUG_LOCKREQS, which logs only lock requests.
* vinumstart: If a write request is for a RAID-[45] plex or a volumegrog2001-05-221-13/+23
| | | | | | | | | | | | | | | | | with more than one plex, the data will be accessed multiple times. During this time, userland code could potentially modify the buffer, thus causing data corruption. In the case of a multi-plexed volume this might be cosmetic, but in the case of a RAID-[45] plex it can cause severe data corruption which only becomes evident after a drive failure. Avoid this situation by making a copy of the data buffer before using it. Note that this solution does not guarantee any particular content of the buffer, just that it remains unchanged for the duration of the request. Suggested by: alfred
* tokenize: Take third parameter specifying the maximum number ofgrog2001-05-221-6/+8
| | | | | parameters to return. This code is used both in userland and in the kernel.
* Cosmetics: wrap long lines to be < 80 characters.grog2001-05-221-2/+4
|
* Add a new debug flag, DEBUG_LOCKREQS, which logs only lock requests.grog2001-05-221-12/+25
| | | | | | | | | | | | | | | | | | | | | | | | | Use this instead of DEBUG_LASTREQS to decide whether to log lock requests. MFS: vinumlock: Catch a potential race condition where one process is waiting for a lock, and between the time it is woken and it retries the lock, another process gets it and places it in the first entry in the table. This problem has not been observed, but it's possible, and it's easy enough to fix. Submitted by: tegge vinumunlock: Catch a real bug capable of hanging a system. When releasing a lock, vinumunlock() called wakeup_one. This caused wakeups to sometimes get lost. After due consideration, we think that this is due to the fact that you can't guarantee that some other process is also waiting on the same address. This makes wakeup_one a very dangerous function to use.
* Change ioctls to use the expurgated userland version of the Vinumgrog2001-05-223-20/+22
| | | | structures.
* format_config: Replace long format lines.grog2001-05-221-18/+28
| | | | | | | | | | | | | | Requested by: bde Add retryerrors keyword. vinum_scandisk: Print a different message if an inadvertent start command did not find any additional drives. The previous message "no drives found" confused and worried many people. MFS: vinum_open: Recognize Mylex devices as storage devices.
* complete_rqe:grog2001-05-221-7/+41
| | | | | | | | | | | | In case of error, check the VF_RETRYERRORS flag in the subdisk and don't take the subdisk down if it's set, just retry the I/O. Requested by: peter If the buffer has been copied (XFR_COPYBUF), release the copied buffer when the I/O completes. Suggested by: alfred
* Remove unnecessary declarations of userland functions.grog2001-05-221-13/+25
| | | | | | | | | Desired by: bde This commit is the first of a general cleanup of the header files.. It won't be enough to make bde happy. Move debug definitions from vinumhdr.h.
* config_sd: Add code to recognize "retryerrors" keyword.grog2001-05-221-29/+48
| | | | | | | | | config_plex: Don't create the device until we're finished. parse_config: check for corrupted configuration, thus avoiding a potential panic. remove_sd_entry: Restore structure.
* free_vinum: Change some explicit struct member references to the SD,grog2001-05-221-13/+23
| | | | PLEX and VOL.
* Add xferinfo flag bit for copied buffers.grog2001-05-221-2/+16
| | | | | | | Create a new struct rangelockinfo. In revision 1.21 of vinumlock.c, the plex info was removed from struct rangelock, since it wasn't needed there. It *is* needed for trace information, however, so use struct rangelockinfo for that.
* New file containing definitions for separate views of objects forgrog2001-05-221-0/+275
| | | | userland and kernel.
* Remove KASSERT test for sleeping on mv_mtx, instead let WITNESS catchalfred2001-05-221-2/+0
| | | | | | it. Requested by: jhb
* Sort includes.jhb2001-05-221-3/+3
|
* Fix a grammar nit.dd2001-05-221-1/+1
| | | | | PR: 27520 Submitted by: Michael Lucas <mwlucas@blackhelicopters.org>
* Remove a few more spl's I missed earlier.jhb2001-05-222-4/+0
| | | | | Reported by: Michael Harnois <mdharnois@home.com> Pointy hat: me
* Sort includes from previous commit.jhb2001-05-212-2/+2
|
* Sort includes.jhb2001-05-217-7/+7
|
* - Assert that the vm mutex is held in pipe_free_kmem().jhb2001-05-211-1/+6
| | | | | | | | - Don't release the vm mutex early in pipespace() but instead hold it across vm_object_deallocate() if vm_map_find() returns an error and across pipe_free_kmem() if vm_map_find() succeeds. - Add a XXX above a zfree() since zalloc already has its own locking, one would hope that zfree() wouldn't need the vm lock.
* Axe unneeded spl()'s.jhb2001-05-213-10/+1
|
* syslog.h fails to compile with -Wwrite-stringsphk2001-05-211-2/+2
| | | | | PR: 27492 Submitted by: Alexey V. Neyman <avn@any.ru>
* Change pmap_emulate_reference() so that it only touches the vm_pagegallatin2001-05-211-1/+9
| | | | | | | | | flags if it is safe to do so, otherwise it will just alter the pmap state (eg, clear the appropriate PG_FOx bits). This gets alpha booting in the face of the vm_mtx introduction. Reviewed by: dfr
* catch these files up to their i386 neighbors to make alpha bootgallatin2001-05-215-20/+60
| | | | prior to the vm_mtx
* Update pc98 memory probe functions.nyan2001-05-214-572/+82
| | | | | | | | - pc98_getmemsize() function returns available memory size under 16MB. - getmemsize() function is merged from PC-AT's one. Submitted by: chi@bd.mbn.or.jp (Chiharu Shibata) and NOKUBI Hirotaka <nokubi@ff.iij4u.or.jp>
* Merged from sys/i386/isa/npx.c revisions 1.99 and 1.100.nyan2001-05-211-74/+29
|
* Merged from sys/i386/i386/machdep.c revisions 1.452 and 1.453.nyan2001-05-212-24/+24
|
OpenPOWER on IntegriCloud