freebsd-skq/sys/sys
Alan Cox e9a3f7852d Modestly increase the maximum allowed size of the kmem map on i386.
Also, express this new maximum as a fraction of the kernel's address
space size rather than a constant so that increasing KVA_PAGES will
automatically increase this maximum.  As a side-effect of this change,
kern.maxvnodes will automatically increase by a proportional amount.

While I'm here ensure that this change doesn't result in an unintended
increase in maxpipekva on i386.  Calculate maxpipekva based upon the
size of the kernel address space and the amount of physical memory
instead of the size of the kmem map.  The memory backing pipes is not
allocated from the kmem map.  It is allocated from its own submap of
the kernel map.  In short, it has no real connection to the kmem map.
(In fact, the commit messages for the maxpipekva auto-sizing talk
about using the kernel map size, cf. r117325 and r117391, even though
the implementation actually used the kmem map size.)  Although the
calculation is now done differently, the resulting value for
maxpipekva should remain almost the same on i386.  However, on amd64,
the value will be reduced by 2/3.  This is intentional.  The recent
change to VM_KMEM_SIZE_SCALE on amd64 for the benefit of ZFS also had
the unnecessary side-effect of increasing maxpipekva.  This change is
effectively restoring maxpipekva on amd64 to its prior value.

Eliminate init_param3() since it is no longer used.
2011-03-23 16:38:29 +00:00
..
_bus_dma.h
_iovec.h
_lock.h - Embed the recursion counter for any locking primitive directly in the 2008-05-15 20:10:06 +00:00
_lockmgr.h In current code, threads performing an interruptible sleep (on both 2009-12-12 21:31:07 +00:00
_mutex.h - Embed the recursion counter for any locking primitive directly in the 2008-05-15 20:10:06 +00:00
_null.h *sigh*, while the kernel built, userland C did not. Revert the previous 2009-05-11 21:13:00 +00:00
_pthreadtypes.h Fix the visibility of several prototypes. Also move pthread_kill() and 2009-03-14 20:10:14 +00:00
_rmlock.h rmlock(9) two additions and one change/fix: 2010-09-01 19:50:03 +00:00
_rwlock.h - Embed the recursion counter for any locking primitive directly in the 2008-05-15 20:10:06 +00:00
_semaphore.h Use umtx to implement process sharable semaphore, to make this work, 2010-01-05 02:37:59 +00:00
_sigset.h
_sockaddr_storage.h Move the duplicate definition of struct sockaddr_storage to its own 2009-09-08 10:39:38 +00:00
_stack.h Optimize lockmgr in order to get rid of the pool mutex interlock, of the 2008-04-06 20:08:51 +00:00
_sx.h - Embed the recursion counter for any locking primitive directly in the 2008-05-15 20:10:06 +00:00
_task.h Use a safer mechanism for determining if a task is currently running, 2010-10-13 22:59:04 +00:00
_termios.h Decompose <sys/termios.h>. 2009-11-28 23:50:48 +00:00
_timespec.h Rename st_*timespec fields to st_*tim for POSIX 2008 compliance. 2010-03-28 13:13:22 +00:00
_timeval.h
_types.h Introduce accmode_t. This is required for NFSv4 ACLs - it will be neccessary 2008-10-28 13:44:11 +00:00
_umtx.h MFp4: 2010-12-22 05:01:52 +00:00
aac_ioctl.h Fix typos - remove duplicate "the". 2011-02-21 09:01:34 +00:00
acct.h
acl.h Move the code around so that libc behaviour does not depend on a variable 2011-03-22 17:44:07 +00:00
agpio.h
aio.h Namespace: aio_waitcomplete() is a BSD extension. 2009-03-14 19:17:00 +00:00
alq.h - Rework the underlying ALQ storage to be a circular buffer, which amongst other 2010-04-26 13:48:22 +00:00
apm.h Add apple-boot and apple-ufs. 2009-12-14 22:47:09 +00:00
assym.h
ata.h Make PUIS detection more strict. Previous implementation caused false 2010-02-26 10:42:46 +00:00
bio.h Correct bioq_disksort so that bioq_insert_tail() offers barrier semantic. 2010-09-02 19:40:28 +00:00
bitstring.h
blist.h add malloc flag to blist so that it can be used in ithread context 2008-05-05 19:48:54 +00:00
buf_ring.h Switch to our preferred 2-clause BSD license. 2010-05-05 20:39:02 +00:00
buf.h Add INVARIANTS checking that numfreebufs values are sane. Also add a 2010-06-11 17:03:26 +00:00
bufobj.h Remove the struct thread unuseful argument from bufobj interface. 2008-10-10 21:23:50 +00:00
bus_dma.h When bouncing pages, allow a new option to preserve the intra-page 2009-02-08 22:54:58 +00:00
bus.h - Merge changes to the base system to support OFED. These include 2011-03-21 09:40:01 +00:00
callout.h Make kern_tc.c provide minimum frequency of tc_ticktock() calls, required 2010-09-14 08:48:06 +00:00
capability.h Add Capsicum capability mode support; svn add of capability.h was missed 2011-03-01 17:37:58 +00:00
cdefs.h Turn off default generation of userland dot symbols on powerpc64 now that 2011-02-18 21:44:53 +00:00
cdio.h
cdrio.h
cfictl.h Add support for frobbing Intel StrataFlash Protection Registers: 2009-02-05 18:12:07 +00:00
chio.h
clock.h The NetBSD Foundation has granted permission to remove clause 3 and 4 from 2010-03-03 17:55:51 +00:00
condvar.h - Pass the priority argument from *sleep() into sleepq and down into 2008-03-12 06:31:06 +00:00
conf.h Check the device name validity on device registration. 2010-10-07 18:00:55 +00:00
cons.h Allow multiple console devices per driver without insane code duplication. 2009-08-24 10:53:30 +00:00
consio.h
copyright.h Happy New Year 2011. 2010-12-31 18:07:16 +00:00
cpu.h Provide a new CPU device driver ivar to report the nominal speed of the 2009-05-31 08:59:15 +00:00
cpuctl.h - Add support to atomically set/clear individual bits of a MSR register 2009-06-30 12:35:47 +00:00
cpuset.h - Add a new cpuset macro, CPU_FILL(), for setting the set to all 1s. 2009-06-23 06:57:46 +00:00
ctype.h
dataacq.h
device_port.h
devicestat.h
digiio.h
dir.h
dirent.h
disk.h Remove spurious '/*-' marks and fix some other style problems. 2010-07-22 05:42:29 +00:00
disklabel.h Add MIPS platform, this will make bsdlabel(8) work on MIPS (when invoked 2010-09-23 05:24:50 +00:00
diskmbr.h Add new user-friendly aliases for partition types for the MBR and 2011-01-28 11:13:01 +00:00
diskpc98.h Move the PC98_[MS]ID_* defines from g_part_pc98.c to diskpc98.h. 2009-03-11 13:15:42 +00:00
dkstat.h
domain.h Introduce and use a sysinit-based initialization scheme for virtual 2009-07-23 20:46:49 +00:00
dtrace_bsd.h Add the necessary DTrace function pointers. 2010-08-25 12:35:36 +00:00
dvdio.h
elf32.h
elf64.h style(9) 2009-01-01 02:08:56 +00:00
elf_common.h Add PT_GNU_STACK definition. 2010-11-23 12:51:08 +00:00
elf_generic.h style(9) 2009-01-01 02:08:56 +00:00
elf.h Remove _SOLARIS_C_SOURCE compatibility definitions. Unfortunately the 2007-11-28 21:54:46 +00:00
endian.h Fix some way-past-brucification complaints from FlexeLint. 2010-05-20 06:16:13 +00:00
errno.h Add ECAPMODE, "Not permitted in capability mode", a new kernel errno 2011-03-01 13:14:28 +00:00
eui64.h
event.h The devices that supported EVFILT_NETDEV kqueue filters were removed in 2009-12-31 20:29:58 +00:00
eventhandler.h Extend struct sysvec with new method sv_schedtail, which is used for an 2011-03-08 19:01:45 +00:00
eventvar.h
exec.h Add macro DECLARE_MODULE_TIED to denote a module as requiring the 2010-10-12 09:18:17 +00:00
extattr.h Introduce accmode_t. This is required for NFSv4 ACLs - it will be neccessary 2008-10-28 13:44:11 +00:00
fail.h Initialize fp_location for explicitly managed fail points, and push 2010-12-21 18:23:03 +00:00
fbio.h Yet another attempt to make palette loading more safer: 2010-02-23 21:51:14 +00:00
fcntl.h Add two new fcntls to enable/disable read-ahead: 2009-09-28 16:59:47 +00:00
fdcio.h
file.h - Merge changes to the base system to support OFED. These include 2011-03-21 09:40:01 +00:00
filedesc.h - Implement a lockless file descriptor lookup algorithm in 2009-05-14 03:24:22 +00:00
filio.h Add FIONSPACE from NetBSD. FIONSPACE is provided so that programs may 2009-06-30 13:38:49 +00:00
firmware.h
fnv_hash.h
gmon.h
gpio.h Initial GPIO bus support. Includes: 2010-09-28 03:24:53 +00:00
gpt.h Add new user-friendly aliases for partition types for the MBR and 2011-01-28 11:13:01 +00:00
hash.h
hhook.h - Introduce the Hhook (Helper Hook) KPI. The KPI is closely modelled on pfil(9), 2010-12-21 13:45:29 +00:00
iconv.h Switch to our preferred 2-clause BSD license. 2010-04-07 16:50:38 +00:00
imgact_aout.h Merge projects/enhanced_coredumps (r204346) into HEAD: 2010-03-02 06:58:58 +00:00
imgact_elf.h Reword the comment, fixing typo. 2010-07-24 14:23:06 +00:00
imgact.h Create shared (readonly) page. Each ABI may specify the use of page by 2011-01-08 16:13:44 +00:00
inflate.h
interrupt.h - Merge changes to the base system to support OFED. These include 2011-03-21 09:40:01 +00:00
ioccom.h IOCPARM_MAX defines maximum size of a structure that can be passed 2010-04-01 16:21:35 +00:00
ioctl_compat.h Perform cleanups to the TTY headers: 2009-09-06 09:39:40 +00:00
ioctl.h Clean up <sys/ioctl.h>. 2009-05-09 19:01:24 +00:00
ipc.h Change the ABI of some of the structures used by the SYSV IPC API: 2009-06-24 21:10:52 +00:00
ipmi.h
jail.h - Merge changes to the base system to support OFED. These include 2011-03-21 09:40:01 +00:00
joystick.h
kbio.h Make the keyboard layer Unicode aware. 2009-09-19 17:56:26 +00:00
kdb.h DTrace can enter the debugger from a probe. Add a WHY definition for this. 2008-05-23 04:00:44 +00:00
kenv.h
kernel.h Mostly revert r219468, as I had misremembered the C standard regarding 2011-03-11 18:56:55 +00:00
kerneldump.h - Add minidump support for FreeBSD/mips 2010-11-07 03:09:02 +00:00
khelp.h - Introduce the Hhook (Helper Hook) KPI. The KPI is closely modelled on pfil(9), 2010-12-21 13:45:29 +00:00
kobj.h KOBJMETHOD: throw the switch on kobj method signature checking 2009-06-12 09:05:23 +00:00
ksem.h Rework the lifetime management of the kernel implementation of POSIX 2008-06-27 05:39:04 +00:00
ksyms.h Add the ksyms(4) pseudo driver. The ksyms driver allows a process to 2009-05-26 21:39:09 +00:00
kthread.h Remove spurious '/*-' marks and fix some other style problems. 2010-07-22 05:42:29 +00:00
ktr.h Remove extra commas from KTR_EVENT4() macro to match number of CTR6() args. 2010-07-24 10:07:17 +00:00
ktrace.h Introduce preliminary support of the show description of the ABI of 2011-02-25 22:05:33 +00:00
libkern.h Add support for asterisk characters when filling in the GELI password 2010-11-14 14:12:43 +00:00
limits.h POSIX.1-2008 moved some constants from the XSI option to the Base. 2011-03-04 19:28:27 +00:00
link_aout.h
link_elf.h In rtld, read the initial stack access mode from AT_STACKPROT as set 2011-01-08 17:11:49 +00:00
linker_set.h After some off-list discussion, revert a number of changes to the 2010-11-22 19:32:54 +00:00
linker.h Provide convenience function for obtaining MODINFO_ADDR and MODINFO_SIZE 2011-02-09 19:08:21 +00:00
lock_profile.h In non-debugging mode make this define (void)0 instead of nothing. This 2009-06-21 09:01:12 +00:00
lock.h Protect BSDI $Id from accidental manipulation. 2010-09-10 06:26:28 +00:00
lockf.h The advisory lock may be activated or activated and removed during the 2009-05-24 12:39:38 +00:00
lockmgr.h Add dedicated routines to toggle lockmgr flags such as LK_NOSHARE and 2010-08-20 19:46:50 +00:00
lockstat.h Add the OpenSolaris dtrace lockstat provider. The lockstat provider 2009-05-26 20:28:22 +00:00
loginclass.h Add two new system calls, setloginclass(2) and getloginclass(2). This makes 2011-03-05 12:40:35 +00:00
mac.h
malloc.h Add MALLOC_DEBUG_MAXZONES debug malloc(9) option to use multiple uma 2010-07-28 15:36:12 +00:00
mbpool.h
mbuf.h MFp4: anchie_soc2009 branch: 2010-08-19 11:31:03 +00:00
mchain.h Switch to our preferred 2-clause BSD license. 2010-04-07 16:50:38 +00:00
md4.h
md5.h
mdioctl.h
memrange.h Add reader/writer lock around mem_range_attr_get() and mem_range_attr_set(). 2011-01-17 22:58:28 +00:00
mman.h Add the MAP_PREFAULT_READ option to mmap(2). 2010-08-28 16:57:07 +00:00
module_khelp.h - Introduce the Hhook (Helper Hook) KPI. The KPI is closely modelled on pfil(9), 2010-12-21 13:45:29 +00:00
module.h Add macro DECLARE_MODULE_TIED to denote a module as requiring the 2010-10-12 09:18:17 +00:00
mount.h Close body of the VFS_UNLOCK_GIANT() macro into do { } while (0) loop, 2010-12-21 21:59:21 +00:00
mouse.h
mpt_ioctl.h Add a new personality to mpt(4) devices to allow userland applications to 2008-05-06 20:49:53 +00:00
mqueue.h
msg.h Change the ABI of some of the structures used by the SYSV IPC API: 2009-06-24 21:10:52 +00:00
msgbuf.h Make MSGBUF_SIZE kernel option a loader tunable kern.msgbufsize. 2011-01-21 10:26:26 +00:00
mtio.h
mutex.h Retire mp_fixme(). It's no longer used. 2011-02-14 02:37:27 +00:00
namei.h Extend the cn_flags field of the struct componentname to 64 bits to have 2009-07-09 18:49:26 +00:00
nlist_aout.h Make the char *n_name member of struct nlist 'const'. 2010-06-10 14:19:51 +00:00
osd.h - Introduce the Hhook (Helper Hook) KPI. The KPI is closely modelled on pfil(9), 2010-12-21 13:45:29 +00:00
param.h Bump __FreeBSD_version for struct sysvec (sv_schedtail) changes. 2011-03-08 19:05:14 +00:00
pciio.h - Add a new ioctl to /dev/pci to fetch details on an individual BAR of a 2009-02-02 22:04:40 +00:00
pcpu.h After some off-list discussion, revert a number of changes to the 2010-11-22 19:32:54 +00:00
pioctl.h Fix typo. 2011-01-23 12:44:17 +00:00
pipe.h - Make maxpipekva a signed long rather than an unsigned long as overflow 2009-03-10 21:28:43 +00:00
pmc.h Set the comment at the right place for PMC uncore classes. 2010-06-15 09:12:31 +00:00
pmckern.h Support sparsely numbered CPUs. 2008-09-22 10:37:02 +00:00
pmclog.h - Add support for PMCs in Intel CPUs of Family 6, model 0xE (Core Solo 2008-11-27 09:00:47 +00:00
poll.h
posix4.h Add a facility to dynamically adjust or unconfigure p1003_1b mib. 2010-06-02 09:59:05 +00:00
power.h
priority.h Rework realtime priority support: 2011-01-14 17:06:54 +00:00
priv.h Add two new system calls, setloginclass(2) and getloginclass(2). This makes 2011-03-05 12:40:35 +00:00
proc.h Update a comment. The kernel stopped using the S* process state constants 2011-03-23 13:46:17 +00:00
procfs.h Add the ability for GDB to printout the thread name along with other 2010-11-22 14:42:13 +00:00
protosw.h Introduce an infrastructure for dismantling vnet instances. 2009-06-08 17:15:40 +00:00
ptio.h
ptrace.h Allow debugger to specify that children of the traced process should be 2011-01-25 10:59:21 +00:00
queue.h Add SLIST_SWAP() macro. 2010-12-03 16:07:50 +00:00
random.h
reboot.h
refcount.h Remove debugging cruft. 2008-07-23 16:44:20 +00:00
regression.h
resource.h Style fix - keep the line length below 80 characters. 2010-07-18 11:13:36 +00:00
resourcevar.h Revert r210225 - turns out I was wrong; the "/*-" is not license-only 2010-07-18 20:57:53 +00:00
rman.h
rmlock.h rmlock(9) two additions and one change/fix: 2010-09-01 19:50:03 +00:00
rtprio.h
runq.h - Restore runq to manipulating threads directly by putting runq links and 2008-03-20 05:51:16 +00:00
rwlock.h When releasing a read/shared lock we need to use a write memory barrier 2009-09-30 13:26:31 +00:00
sbuf.h Replace sbuf_overflowed() with sbuf_error(), which returns any error 2010-09-10 16:42:16 +00:00
sched.h - Follow r216313, the sched_unlend_user_prio is no longer needed, always 2010-12-29 09:26:46 +00:00
sdt.h Add an extra comment to the SDT probes definition. This allows us to get 2010-08-22 11:18:57 +00:00
select.h
selinfo.h Refactor select to reduce contention and hide internal implementation 2007-12-16 06:21:20 +00:00
sem.h Change the ABI of some of the structures used by the SYSV IPC API: 2009-06-24 21:10:52 +00:00
sema.h
serial.h
sf_buf.h
sglist.h Change the 'resid' parameter to sglist_consume_uio() from an int to a 2009-08-20 19:23:58 +00:00
shm.h Change the ABI of some of the structures used by the SYSV IPC API: 2009-06-24 21:10:52 +00:00
sigio.h
signal.h Make POLL_ERR and POLL_HUP different. 2010-11-12 15:30:49 +00:00
signalvar.h Create a global thread hash table to speed up thread lookup, use 2010-10-09 02:50:23 +00:00
sleepqueue.h Tighten up some of the comments describing turnstiles and sleepqueues. 2010-12-13 23:53:55 +00:00
smp.h Add some platform KOBJ extensions and continue integrating PowerPC 2010-11-12 04:18:19 +00:00
snoop.h
sockbuf.h Rework socket upcalls to close some races with setup/teardown of upcalls. 2009-06-01 21:17:03 +00:00
socket.h This commit implements the SO_USER_COOKIE socket option, which lets 2010-11-12 13:02:26 +00:00
socketvar.h This commit implements the SO_USER_COOKIE socket option, which lets 2010-11-12 13:02:26 +00:00
sockio.h Reshuffle SIOCGIFCONF32 handler from r155224. 2010-10-21 16:20:48 +00:00
sockopt.h Factor sockbuf, sockopt, and sockstate out of socketvar.h in to separate headers. 2008-07-29 07:45:05 +00:00
sockstate.h Factor sockbuf, sockopt, and sockstate out of socketvar.h in to separate headers. 2008-07-29 07:45:05 +00:00
soundcard.h Move machine dependant AFMT_* definition from sound.h 2009-06-10 03:56:24 +00:00
stack.h Add stack_print_short() and stack_print_short_ddb() interfaces to 2009-06-24 12:06:15 +00:00
stat.h Rename st_*timespec fields to st_*tim for POSIX 2008 compliance. 2010-03-28 13:13:22 +00:00
statvfs.h
stddef.h
stdint.h
sun_disklabel.h
sx.h - Merge changes to the base system to support OFED. These include 2011-03-21 09:40:01 +00:00
syscall.h Regenerate. 2011-03-05 12:46:24 +00:00
syscall.mk Regenerate. 2011-03-05 12:46:24 +00:00
syscallsubr.h Move prototypes for kern_sigtimedwait() and kern_sigprocmask() to 2010-06-30 18:03:42 +00:00
sysctl.h - Merge changes to the base system to support OFED. These include 2011-03-21 09:40:01 +00:00
sysent.h Extend struct sysvec with new method sv_schedtail, which is used for an 2011-03-08 19:01:45 +00:00
syslimits.h Rework the credential code to support larger values of NGROUPS and 2009-06-19 17:10:35 +00:00
syslog.h Namespace: vsyslog() is a BSD extension. 2009-03-14 19:07:25 +00:00
sysproto.h Regenerate. 2011-03-05 12:46:24 +00:00
systm.h Modestly increase the maximum allowed size of the kmem map on i386. 2011-03-23 16:38:29 +00:00
taskqueue.h Use M_WAITOK rather than M_NOWAIT when creating taskqueues via the 2011-02-04 14:06:57 +00:00
termios.h Decompose <sys/termios.h>. 2009-11-28 23:50:48 +00:00
thr.h Make this file more C++ friendly. 2010-04-20 17:57:43 +00:00
tiio.h
time.h Certain static code analysis tools (FlexeLint being one) are very 2010-10-04 10:48:47 +00:00
timeb.h Add warnings to <regexp.h> and <sys/timeb.h>. 2010-03-09 21:01:12 +00:00
timeet.h Refactor timer management code with priority to one-shot operation mode. 2010-09-13 07:25:35 +00:00
timepps.h
timers.h
times.h
timespec.h Rename st_*timespec fields to st_*tim for POSIX 2008 compliance. 2010-03-28 13:13:22 +00:00
timetc.h Make kern_tc.c provide minimum frequency of tc_ticktock() calls, required 2010-09-14 08:48:06 +00:00
timex.h
tree.h In sys/tree.h: 2009-03-01 04:57:23 +00:00
tty.h Make TIOCSTI work again. 2010-01-04 20:59:52 +00:00
ttycom.h Perform cleanups to the TTY headers: 2009-09-06 09:39:40 +00:00
ttydefaults.h Reduce the default baud rate of PTY's to 9600. 2008-11-08 20:40:39 +00:00
ttydevsw.h Update d_mmap() to accept vm_ooffset_t and vm_memattr_t. 2009-12-29 21:51:28 +00:00
ttydisc.h Add ttydisc_rint_simple(). 2009-08-23 08:04:40 +00:00
ttyhook.h Change ttyhook_register() second argument from thread to process pointer. 2008-12-13 21:17:46 +00:00
ttyqueue.h Properly set the low watermarks when reducing the baud rate. 2009-10-19 07:17:37 +00:00
turnstile.h Tighten up some of the comments describing turnstiles and sleepqueues. 2010-12-13 23:53:55 +00:00
types.h Remove spurious '/*-' marks and fix some other style problems. 2010-07-22 05:42:29 +00:00
ucontext.h
ucred.h Add two new system calls, setloginclass(2) and getloginclass(2). This makes 2011-03-05 12:40:35 +00:00
uio.h Remove the uio_yield prototype and symbol. This function has been 2011-02-08 00:36:46 +00:00
umtx.h Use umtx_key objects to uniquely identify futexes. Private futexes in 2011-02-23 13:23:28 +00:00
un.h Now that portalfs doesn't directly invoke uipc_connect2(), make it a 2008-10-06 18:43:11 +00:00
unistd.h Indicate that POSIX semaphores are always supported. 2010-09-19 12:01:50 +00:00
unpcb.h Remove explicit locking of struct file. 2007-12-30 01:42:15 +00:00
user.h Export login class information via kinfo and make it possible to view 2011-03-05 14:41:49 +00:00
utsname.h
uuid.h
vmmeter.h Move repeated MAXSLP definition from machine/vmparam.h to sys/vmmeter.h. 2011-01-09 12:50:44 +00:00
vnode.h Put the general logic for being a CPU hog into a new function 2011-02-02 16:35:10 +00:00
vtoc.h - In gpart_bootfile_read() fix an off-by-one error preventing the bootstrap 2010-06-03 13:01:55 +00:00
wait.h Implement WNOWAIT flag for wait4(2). It specifies that process whose status 2008-08-26 12:37:16 +00:00
watchdog.h