freebsd-dev/sys
Don Lewis 169299398a Undo the merger of mlock()/vslock and munlock()/vsunlock() and the
introduction of kern_mlock() and kern_munlock() in
        src/sys/kern/kern_sysctl.c      1.150
        src/sys/vm/vm_extern.h          1.69
        src/sys/vm/vm_glue.c            1.190
        src/sys/vm/vm_mmap.c            1.179
because different resource limits are appropriate for transient and
"permanent" page wiring requests.

Retain the kern_mlock() and kern_munlock() API in the revived
vslock() and vsunlock() functions.

Combine the best parts of each of the original sets of implementations
with further code cleanup.  Make the mclock() and vslock()
implementations as similar as possible.

Retain the RLIMIT_MEMLOCK check in mlock().  Move the most strigent
test, which can return EAGAIN, last so that requests that have no
hope of ever being satisfied will not be retried unnecessarily.

Disable the test that can return EAGAIN in the vslock() implementation
because it will cause the sysctl code to wedge.

Tested by:	Cy Schubert <Cy.Schubert AT komquats.com>
2004-03-05 22:03:11 +00:00
..
alpha Fix syntax errors and wrong function prototypes in several MD header 2004-03-05 09:19:59 +00:00
amd64 MFi386: (all: keep a comment in sync with code, and don't depend on 2004-03-05 14:31:21 +00:00
arm Add sysentvec->sv_fixlimits() hook so that we can catch cases on 64 bit 2003-09-25 01:10:26 +00:00
boot While I'm here, add linprocfs (but not pseudofs, since it is no use on 2004-03-01 18:42:16 +00:00
cam Compare the *number* of patterns to zero, not the *pointer* to the 2004-02-28 12:59:56 +00:00
coda Device megapatch 5/6: 2004-02-21 21:32:15 +00:00
compat - Some older Atheros drivers want KeInitializeTimer(), so implement it, 2004-03-04 23:04:02 +00:00
conf VESA* is a mistake - it cannot exist due to requiring a 32 bit kernel for 2004-03-05 07:56:23 +00:00
contrib Part 2 of Project Evil: Pretend to be Windows 2000 for buggy ASL that 2004-03-04 05:57:41 +00:00
crypto Fix a reentrancy issue in md5_calc(). 2004-01-27 18:57:21 +00:00
ddb Give DDB a "watchdog" command which disables all watchdogs. 2004-02-29 09:55:32 +00:00
dev Document a sysctl. 2004-03-05 18:08:23 +00:00
fs Change __FUNCTION__ to __func__ 2004-03-03 07:43:34 +00:00
geom Correct year in copyrights. 2004-03-04 10:22:42 +00:00
gnu Enforce the file size limit in VOP_WRITE() as well as VOP_TRUNCATE(); 2004-02-19 09:06:06 +00:00
i4b Device megapatch 4/6: 2004-02-21 21:10:55 +00:00
i386 Fixed insertion sort errors in prototype list. 2004-03-05 15:30:40 +00:00
ia64 Fix syntax errors and wrong function prototypes in several MD header 2004-03-05 09:19:59 +00:00
isa Remove unused FDNUMTOUNIT() macro 2004-02-29 10:21:40 +00:00
isofs/cd9660 Fix comment containing vop_readdir_args contents: a_cookies is really 2004-02-23 01:43:00 +00:00
kern Undo the merger of mlock()/vslock and munlock()/vsunlock() and the 2004-03-05 22:03:11 +00:00
libkern Remove register keyword and constify tmp values. This fixes 2004-02-12 03:23:13 +00:00
modules - Some older Atheros drivers want KeInitializeTimer(), so implement it, 2004-03-04 23:04:02 +00:00
net Two minor follow-ups on the MT_TAG removal: 2004-03-02 14:37:23 +00:00
net80211 Change WI_RID_SCAN_RES compatibility interface to return the result after 2004-01-19 05:25:43 +00:00
netatalk Rename dup_sockaddr() to sodupsockaddr() for consistency with other 2004-03-01 03:14:23 +00:00
netatm Don't remove the first mbuf in the chain if it got empty. 2004-02-21 12:55:07 +00:00
netgraph Netgraph node type for IEEE 802.1Q VLAN tagging. 2004-03-01 17:22:16 +00:00
netinet Add some missing DUMMYNET_UNLOCK() in config_pipe(). 2004-03-03 01:33:22 +00:00
netinet6 move in6_addmulti()/in6_delmulti() into mld6.c 2004-03-04 15:07:42 +00:00
netipsec Fix type in a sysctl. It used to be: net.key.prefered_oldsa 2004-02-16 17:09:53 +00:00
netipx Rename dup_sockaddr() to sodupsockaddr() for consistency with other 2004-03-01 03:14:23 +00:00
netkey avoid duplicate free. 2004-01-25 17:18:12 +00:00
netnatm Rename dup_sockaddr() to sodupsockaddr() for consistency with other 2004-03-01 03:14:23 +00:00
netncp Split the mlock() kernel code into two parts, mlock(), which unpacks 2004-02-26 00:27:04 +00:00
netsmb Rename dup_sockaddr() to sodupsockaddr() for consistency with other 2004-03-01 03:14:23 +00:00
nfs University of Michigan's Citi NFSv4 kernel client code. 2003-11-14 20:54:10 +00:00
nfs4client NFSv4 fixes from Connectathon 2004: 2004-02-27 19:37:43 +00:00
nfsclient Rename dup_sockaddr() to sodupsockaddr() for consistency with other 2004-03-01 03:14:23 +00:00
nfsserver Rename dup_sockaddr() to sodupsockaddr() for consistency with other 2004-03-01 03:14:23 +00:00
opencrypto Device megapatch 4/6: 2004-02-21 21:10:55 +00:00
pc98 Remove unused FDNUMTOUNIT() macro 2004-02-29 10:21:40 +00:00
pccard Device megapatch 4/6: 2004-02-21 21:10:55 +00:00
pci Device megapatch 4/6: 2004-02-21 21:10:55 +00:00
posix4 The sem_timedwait() and ksem_timedwait() functions both 2004-02-03 22:27:03 +00:00
powerpc Fix syntax errors and wrong function prototypes in several MD header 2004-03-05 09:19:59 +00:00
rpc Don't panic because of RPC proto mismatches. Whitespace cleanup. 2004-01-17 21:25:05 +00:00
security Define BPFD_LOCK_ASSERT() to assert the BPF descriptor lock. 2004-02-29 15:33:56 +00:00
sparc64 Fix syntax errors and wrong function prototypes in several MD header 2004-03-05 09:19:59 +00:00
sys Bump __FreeBSD_version for the NULL == ((void *)0) 2004-03-05 08:34:59 +00:00
tools Attempt to clean up the emu10k1-alsa.h stuff so that config doesn't 2004-02-05 22:51:16 +00:00
ufs A more accurate test in the new ufs_lock than that in 1.235. 2004-02-23 19:05:05 +00:00
vm Undo the merger of mlock()/vslock and munlock()/vsunlock() and the 2004-03-05 22:03:11 +00:00
Makefile Replaced outdated comment. 2004-01-17 03:28:27 +00:00