freebsd-dev/sys/kern
Matthew Dillon 4f79d873c1 Add MAP_NOSYNC feature to mmap(), and MADV_NOSYNC and MADV_AUTOSYNC to
madvise().

    This feature prevents the update daemon from gratuitously flushing
    dirty pages associated with a mapped file-backed region of memory.  The
    system pager will still page the memory as necessary and the VM system
    will still be fully coherent with the filesystem.  Modifications made
    by other means to the same area of memory, for example by write(), are
    unaffected.  The feature works on a page-granularity basis.

    MAP_NOSYNC allows one to use mmap() to share memory between processes
    without incuring any significant filesystem overhead, putting it in
    the same performance category as SysV Shared memory and anonymous memory.

Reviewed by: julian, alc, dg
1999-12-12 03:19:33 +00:00
..
bus_if.m * Add struct resource_list* argument to resource_list_alloc and 1999-10-12 21:35:51 +00:00
device_if.m
imgact_aout.c s/p_cred->pc_ucred/p_ucred/g 1999-11-21 12:38:21 +00:00
imgact_elf.c s/p_cred->pc_ucred/p_ucred/g 1999-11-21 12:38:21 +00:00
imgact_gzip.c useracc() the prequel: 1999-10-29 18:09:36 +00:00
imgact_shell.c
inflate.c
init_main.c struct mountlist and struct mount.mnt_list have no business being 1999-11-20 10:00:46 +00:00
init_sysent.c Cop on a bit and regenerate things correctly. 1999-11-18 20:45:04 +00:00
kern_acct.c
kern_clock.c Make adjtime(2) adjust boottime so it doesn't cause non-monotonous 1999-12-08 10:02:12 +00:00
kern_conf.c Report swapdevices as cdevs rather than bdevs. 1999-11-29 21:37:18 +00:00
kern_descrip.c Only bother converting the stat structure if we intend to return it, 1999-11-18 08:08:28 +00:00
kern_environment.c Change the prototype of the strto* routines to make the second 1999-11-24 01:03:08 +00:00
kern_exec.c Add a sysctl to control if argv is disclosed to the world: 1999-11-26 08:27:16 +00:00
kern_exit.c Scheduler fixes equivalent to the ones logged in the following NetBSD 1999-11-28 12:12:14 +00:00
kern_fork.c Put on my asbestos underwear and commit the patch that I posted to -arch 1999-12-06 11:13:50 +00:00
kern_intr.c Trim unused options (or #ifdef for undoc options). 1999-10-11 15:19:12 +00:00
kern_jail.c
kern_kthread.c Add a per-signal flag to mark handlers registered with osigaction, so we 1999-10-11 20:33:17 +00:00
kern_ktrace.c This is a partial commit of the patch from PR 14914: 1999-11-16 10:56:05 +00:00
kern_linker.c Zap c_index() and c_rindex(). Bruce prefers these to implicitly convert 1999-12-10 17:38:41 +00:00
kern_lock.c Lock reporting and assertion changes. 1999-12-11 16:13:02 +00:00
kern_lockf.c Commit the remaining part of PR14914: 1999-11-16 16:28:58 +00:00
kern_malloc.c KAME netinet6 basic part(no IPsec,no V6 Multicast Forwarding, no UDP/TCP 1999-11-22 02:45:11 +00:00
kern_mib.c Trim unused options (or #ifdef for undoc options). 1999-10-11 15:19:12 +00:00
kern_module.c A hack basically.. We have a bunch of code that used to call 1999-11-08 06:53:30 +00:00
kern_ntptime.c
kern_physio.c Change useracc() and kernacc() to use VM_PROT_{READ|WRITE|EXECUTE} for the 1999-10-30 06:32:05 +00:00
kern_proc.c Add a sysctl to control if argv is disclosed to the world: 1999-11-26 08:27:16 +00:00
kern_prot.c Introduce the new function 1999-11-21 19:03:20 +00:00
kern_random.c Trim some unused #includes 1999-10-11 15:00:09 +00:00
kern_resource.c Add a bit of sanity checking and problem avoidance in case the 1999-11-29 11:29:04 +00:00
kern_shutdown.c Change the default poweroff delay from 0 to 5 seconds. This seems to be 1999-12-07 04:35:37 +00:00
kern_sig.c Introduce the new function 1999-11-21 19:03:20 +00:00
kern_subr.c useracc() the prequel: 1999-10-29 18:09:36 +00:00
kern_switch.c
kern_synch.c Don't make the ktrace hook in tsleep() deref a null curproc after a panic. 1999-11-30 09:01:46 +00:00
kern_syscalls.c Trim unused options (or #ifdef for undoc options). 1999-10-11 15:19:12 +00:00
kern_sysctl.c Separate some common sysctl code into sysctl_find_oid() and calling 1999-12-01 02:25:19 +00:00
kern_tc.c Make adjtime(2) adjust boottime so it doesn't cause non-monotonous 1999-12-08 10:02:12 +00:00
kern_threads.c
kern_time.c Change useracc() and kernacc() to use VM_PROT_{READ|WRITE|EXECUTE} for the 1999-10-30 06:32:05 +00:00
kern_timeout.c
kern_xxx.c
ksched.c
link_aout.c Take a shot at implementing the fix for PR 15014 for the a.out kernel 1999-11-28 12:06:29 +00:00
link_elf_obj.c Fix an embarresing mistake in the kld symbol lookup for DDB. It should 1999-11-28 11:59:18 +00:00
link_elf.c Fix an embarresing mistake in the kld symbol lookup for DDB. It should 1999-11-28 11:59:18 +00:00
Make.tags.inc
makedevops.pl Fix some bugs in user-end output and add a reference to the original 1999-11-22 14:40:04 +00:00
Makefile ${MACHINE} -> ${MACHINE_ARCH} 1999-11-14 13:54:44 +00:00
makesyscalls.sh
md5c.c
p1003_1b.c
posix4_mib.c
subr_autoconf.c Removal of sys/device.h 1999-10-05 21:19:41 +00:00
subr_blist.c useracc() the prequel: 1999-10-29 18:09:36 +00:00
subr_bus.c correct incomplete last change 1999-12-03 09:10:04 +00:00
subr_clist.c
subr_devstat.c This is a partial commit of the patch from PR 14914: 1999-11-16 10:56:05 +00:00
subr_disk.c Conditionalise unwanted chattyness. 1999-11-19 23:34:01 +00:00
subr_disklabel.c
subr_diskmbr.c Fix a warning. 1999-11-09 21:35:10 +00:00
subr_diskslice.c Remove BAD144 support, it has already been disabled for some time. 1999-12-08 09:33:00 +00:00
subr_eventhandler.c Commit the remaining part of PR14914: 1999-11-16 16:28:58 +00:00
subr_log.c
subr_module.c Trim unused options (or #ifdef for undoc options). 1999-10-11 15:19:12 +00:00
subr_param.c
subr_prf.c
subr_prof.c Unremove used includes. 1999-10-12 02:54:23 +00:00
subr_rman.c Commit the remaining part of PR14914: 1999-11-16 16:28:58 +00:00
subr_scanf.c Change the prototype of the strto* routines to make the second 1999-11-24 01:03:08 +00:00
subr_smp.c Moved scheduling-related code to kern_synch.c so that it is easier to fix 1999-11-27 12:32:27 +00:00
subr_trap.c Passing "0" or "FALSE" as the fourth argument to vm_fault is wrong. It 1999-11-09 01:44:28 +00:00
subr_xxx.c
sys_generic.c Missed the second argument of fdrop(). 1999-10-14 10:50:06 +00:00
sys_pipe.c Update pipe code for fo_stat() entry point - pipe_stat() is now no longer 1999-11-08 03:28:49 +00:00
sys_process.c Introduce the new function 1999-11-21 19:03:20 +00:00
sys_socket.c Update socket file type for fo_stat(). soo_stat() becomes a fileops 1999-11-08 03:31:01 +00:00
syscalls.c Cop on a bit and regenerate things correctly. 1999-11-18 20:45:04 +00:00
syscalls.master modfind(char *) -> modfind(const char *) 1999-11-17 21:32:40 +00:00
sysv_ipc.c
sysv_msg.c
sysv_sem.c
sysv_shm.c useracc() the prequel: 1999-10-29 18:09:36 +00:00
tty_compat.c
tty_conf.c Now that Netgraph is in the system there are some cleanups we can do. 1999-10-23 04:28:11 +00:00
tty_cons.c Remove cdevsw_add() - the necessary make_dev() is already there. 1999-11-18 06:37:00 +00:00
tty_pty.c Revert peter's commit to remove cdevsw_add() - it was a bit premature 1999-11-21 02:54:54 +00:00
tty_snoop.c Remove cdevsw_add() - the make_dev() calls are already there. 1999-11-18 06:39:47 +00:00
tty_subr.c
tty_tb.c
tty_tty.c
tty.c This is a partial commit of the patch from PR 14914: 1999-11-16 10:56:05 +00:00
uipc_domain.c
uipc_mbuf.c The functions m_copym() and m_copypacket() return read-only copies, 1999-12-01 22:31:32 +00:00
uipc_proto.c Trim unused options (or #ifdef for undoc options). 1999-10-11 15:19:12 +00:00
uipc_sockbuf.c Implement RLIMIT_SBSIZE in the kernel. This is a per-uid sockbuf total 1999-10-09 20:42:17 +00:00
uipc_socket2.c Implement RLIMIT_SBSIZE in the kernel. This is a per-uid sockbuf total 1999-10-09 20:42:17 +00:00
uipc_socket.c KAME netinet6 basic part(no IPsec,no V6 Multicast Forwarding, no UDP/TCP 1999-11-22 02:45:11 +00:00
uipc_syscalls.c General clean-up of socket.h and associated sources to synchronise up 1999-11-24 20:49:04 +00:00
uipc_usrreq.c This is a partial commit of the patch from PR 14914: 1999-11-16 10:56:05 +00:00
vfs_aio.c Convert various pieces of code to use vn_isdisk() rather than checking 1999-11-22 10:33:55 +00:00
vfs_bio.c Collect read and write counts for filesystems. This new code 1999-12-01 02:09:30 +00:00
vfs_cache.c Before we start to mess with the VFS name-cache clean things up a little bit: 1999-10-03 12:18:29 +00:00
vfs_cluster.c useracc() the prequel: 1999-10-29 18:09:36 +00:00
vfs_conf.c Scan cdevs for potential root devices, rather than bdevs. 1999-12-08 10:01:18 +00:00
vfs_default.c Lock reporting and assertion changes. 1999-12-11 16:13:02 +00:00
vfs_export.c Add MAP_NOSYNC feature to mmap(), and MADV_NOSYNC and MADV_AUTOSYNC to 1999-12-12 03:19:33 +00:00
vfs_extattr.c Add MAP_NOSYNC feature to mmap(), and MADV_NOSYNC and MADV_AUTOSYNC to 1999-12-12 03:19:33 +00:00
vfs_init.c Move a couple of globals here where they are initialised, rather than 1999-11-01 23:54:07 +00:00
vfs_lookup.c Before we start to mess with the VFS name-cache clean things up a little bit: 1999-10-03 12:18:29 +00:00
vfs_mount.c Scan cdevs for potential root devices, rather than bdevs. 1999-12-08 10:01:18 +00:00
vfs_subr.c Add MAP_NOSYNC feature to mmap(), and MADV_NOSYNC and MADV_AUTOSYNC to 1999-12-12 03:19:33 +00:00
vfs_syscalls.c Add MAP_NOSYNC feature to mmap(), and MADV_NOSYNC and MADV_AUTOSYNC to 1999-12-12 03:19:33 +00:00
vfs_vnops.c Ensure that garbage from the kernel stack does not wind up being 1999-11-18 08:14:20 +00:00
vnode_if.pl
vnode_if.sh
vnode_if.src Lock reporting and assertion changes. 1999-12-11 16:13:02 +00:00