NetBSD/sys/dev/scsipi
thorpej a180cee23b Pool deals fairly well with physical memory shortage, but it doesn't
deal with shortages of the VM maps where the backing pages are mapped
(usually kmem_map).  Try to deal with this:

* Group all information about the backend allocator for a pool in a
  separate structure.  The pool references this structure, rather than
  the individual fields.
* Change the pool_init() API accordingly, and adjust all callers.
* Link all pools using the same backend allocator on a list.
* The backend allocator is responsible for waiting for physical memory
  to become available, but will still fail if it cannot callocate KVA
  space for the pages.  If this happens, carefully drain all pools using
  the same backend allocator, so that some KVA space can be freed.
* Change pool_reclaim() to indicate if it actually succeeded in freeing
  some pages, and use that information to make draining easier and more
  efficient.
* Get rid of PR_URGENT.  There was only one use of it, and it could be
  dealt with by the caller.

From art@openbsd.org.
2002-03-08 20:48:27 +00:00
..
Makefile Install "dev/scsipi/scsipi_cd.h" again because it is e.g. used by the 2001-05-31 21:54:07 +00:00
atapi_base.c don't need <sys/types.h> when including <sys/param.h> 2001-11-15 09:47:59 +00:00
atapi_cd.h Use SCSI/ATAPI common definition for MODE_{SELECT,SENSE}{,_BIG}. Define 2001-05-14 20:35:27 +00:00
atapi_disk.h Use SCSI/ATAPI common definition for MODE_{SELECT,SENSE}{,_BIG}. Define 2001-05-14 20:35:27 +00:00
atapi_tape.h Various quirks for the ATAPI OnStream DI-30, mostly from the FreeBSD driver. 2001-12-01 00:03:45 +00:00
atapi_wdc.c IF we change the ATA modes, also reset the device, so that we can retry 2002-01-27 22:00:40 +00:00
atapiconf.c The FujiFilm USB storage drive doesn't have a flex geom page and 2001-12-22 13:29:50 +00:00
atapiconf.h Update my copyrigth. 2001-12-03 00:20:22 +00:00
cd.c Support for dvd region code (RPC). 2001-12-09 22:56:10 +00:00
cd_atapi.c -don't apply scsipi_strvis() twice, it tries to octal-print the string 2002-01-09 18:48:18 +00:00
cd_scsi.c don't need <sys/types.h> when including <sys/param.h> 2001-11-15 09:47:59 +00:00
cdvar.h Pull up the thorpej_scsipi branch to main branch. 2001-04-25 17:53:04 +00:00
ch.c add RCSIDs 2001-11-13 06:54:32 +00:00
files.scsipi - convert usage of "defopt" to "defflag" where the relevant option does 2001-11-28 10:21:10 +00:00
if_se.c don't need <sys/types.h> when including <sys/param.h> 2001-11-15 09:47:59 +00:00
scsi_all.h Use SCSI/ATAPI common definition for MODE_{SELECT,SENSE}{,_BIG}. Define 2001-05-14 20:35:27 +00:00
scsi_base.c don't need <sys/types.h> when including <sys/param.h> 2001-11-15 09:47:59 +00:00
scsi_cd.h Use the AUDIO_PAGE definition common to SCSI and ATAPI. 2001-09-02 19:53:40 +00:00
scsi_changer.h Centralize the definition of the page code mask and page-savable bit 2001-09-02 19:35:20 +00:00
scsi_ctron_ether.h
scsi_disk.h Define more caching parameters from SCSI-3. 2001-09-03 17:14:49 +00:00
scsi_message.h Add common macro to check message length. 2001-11-04 12:03:03 +00:00
scsi_scanner.h Remove duplicate struct scsipi_start_stop. 2001-11-19 17:18:08 +00:00
scsi_tape.h Pull up the thorpej_scsipi branch to main branch. 2001-04-25 17:53:04 +00:00
scsiconf.c Add notag quirk for Seagate "ST11200N SUN1.05". 2002-01-23 18:13:08 +00:00
scsiconf.h Pull up the thorpej_scsipi branch to main branch. 2001-04-25 17:53:04 +00:00
scsipi_all.h Remove duplicate struct scsipi_start_stop. 2001-11-19 17:18:08 +00:00
scsipi_base.c Pool deals fairly well with physical memory shortage, but it doesn't 2002-03-08 20:48:27 +00:00
scsipi_base.h bcopy -> memcpy 2001-07-18 18:25:41 +00:00
scsipi_cd.h Centralize the definition of the page code mask and page-savable bit 2001-09-02 19:35:20 +00:00
scsipi_debug.h use _KERNEL_OPT 2001-05-30 11:40:35 +00:00
scsipi_disk.h Remove duplicate struct scsipi_start_stop. 2001-11-19 17:18:08 +00:00
scsipi_ioctl.c Call malloc(9) with M_ZERO flag instead of memset() after malloc(). 2002-01-12 16:29:30 +00:00
scsipi_verbose.c don't need <sys/types.h> when including <sys/param.h> 2001-11-15 09:47:59 +00:00
scsipiconf.c Call malloc(9) with M_ZERO flag instead of memset() after malloc(). 2002-01-12 16:29:30 +00:00
scsipiconf.h Clean up attach of wd/atapibus: 2001-12-02 22:44:32 +00:00
sd.c Add ioctls to get (DIOCGCACHE) and set (DIOCSCACHE) cache enables 2002-01-09 04:12:11 +00:00
sd_atapi.c -don't apply scsipi_strvis() twice, it tries to octal-print the string 2002-01-09 18:48:18 +00:00
sd_scsi.c Add ioctls to get (DIOCGCACHE) and set (DIOCSCACHE) cache enables 2002-01-09 04:12:11 +00:00
sdvar.h Add ioctls to get (DIOCGCACHE) and set (DIOCSCACHE) cache enables 2002-01-09 04:12:11 +00:00
ses.c don't need <sys/types.h> when including <sys/param.h> 2001-11-15 09:47:59 +00:00
ses.h add SES driver 2000-01-20 17:07:41 +00:00
ss.c don't need <sys/types.h> when including <sys/param.h> 2001-11-15 09:47:59 +00:00
ss_mustek.c don't need <sys/types.h> when including <sys/param.h> 2001-11-15 09:47:59 +00:00
ss_mustek.h
ss_scanjet.c don't need <sys/types.h> when including <sys/param.h> 2001-11-15 09:47:59 +00:00
ssvar.h Pull up the thorpej_scsipi branch to main branch. 2001-04-25 17:53:04 +00:00
st.c For fixed block drive, for invalid sense error code, set info to 2002-01-12 20:30:11 +00:00
st_atapi.c add detach support for st. 2001-12-07 11:26:30 +00:00
st_scsi.c add detach support for st. 2001-12-07 11:26:30 +00:00
stvar.h add detach support for st. 2001-12-07 11:26:30 +00:00
su.c
uk.c Remove a pretty much useless autoconfiguration message. 2002-02-10 23:28:27 +00:00