freebsd-skq/sys/kern
rwatson 4d39491e7e In sendfile(), use the vn_rdwr() helper function, rather than manually
constructing a struct aio and invoking VOP_READ() directly.  This cleans
up the code a little, but also has the advantage of making sure almost
all vnode read/write access in the kernel goes through the helper
function, meaning that instrumentation of that helper function can impact
almost all relevant read/write operations.  In this case, it permits us
to put MAC hooks into vn_rdwr() and not modify uipc_syscalls.c (yet).

In general, if helper vn_*() functions exist, they should be used in
preference to direct VOP's in system call service code.

Submitted by:	green
Obtained from:	TrustedBSD Project
Sponsored by:	DARPA, NAI Labs
2002-04-19 13:46:24 +00:00
..
bus_if.m
clock_if.m Add a generic implementation of inittodr() and resettodr(), as well as 2002-04-04 23:39:10 +00:00
device_if.m
genassym.sh
imgact_aout.c - Change fill_kinfo_proc() to require that the process is locked when it 2002-04-09 20:10:46 +00:00
imgact_elf.c
imgact_gzip.c
imgact_shell.c
inflate.c
init_main.c Divorce proc0 and proc1 credentials earlier; while this isn't technically 2002-04-19 13:35:53 +00:00
init_sysent.c Rework the kernel environment subsystem. We now convert the static 2002-04-17 13:06:36 +00:00
kern_acct.c - Remove an early KSE diagnostic panic. The thread pointer here is always 2002-04-09 19:58:38 +00:00
kern_acl.c
kern_cap.c
kern_clock.c Take the "tickadj" element out of struct clockinfo. Our adjtime(2) 2002-04-15 12:11:06 +00:00
kern_condvar.c
kern_conf.c
kern_descrip.c When exec'ing a set[ug]id program, make sure that the stdio file descriptors 2002-04-19 00:45:29 +00:00
kern_environment.c Avoid calling malloc() or free() while holding the 2002-04-17 17:51:10 +00:00
kern_event.c
kern_exec.c When exec'ing a set[ug]id program, make sure that the stdio file descriptors 2002-04-19 00:45:29 +00:00
kern_exit.c - Lock proctree_lock instead of pgrpsess_lock. 2002-04-16 17:04:21 +00:00
kern_fork.c Lock proctree_lock instead of pgrpsess_lock. 2002-04-16 17:11:34 +00:00
kern_idle.c
kern_intr.c - Set the base priority of an ithread that has no handlers when we set its 2002-04-11 21:03:35 +00:00
kern_jail.c Change callers of mtx_init() to pass in an appropriate lock type name. In 2002-04-04 21:03:38 +00:00
kern_kthread.c
kern_ktr.c Remove a stale comment. 2002-04-06 08:44:04 +00:00
kern_ktrace.c Lock proctree_lock instead of pgrpsess_lock. 2002-04-16 17:11:34 +00:00
kern_linker.c In linker_load_module(), check that rootdev != NODEV before calling 2002-04-10 01:14:45 +00:00
kern_lock.c Change callers of mtx_init() to pass in an appropriate lock type name. In 2002-04-04 21:03:38 +00:00
kern_lockf.c
kern_malloc.c Finish adding support code for sysctl kern.mprof. This dumps some malloc 2002-04-15 05:24:01 +00:00
kern_mib.c - Add a mutex to lock the global securelevel value. 2002-04-02 17:43:17 +00:00
kern_module.c
kern_mtxpool.c Change callers of mtx_init() to pass in an appropriate lock type name. In 2002-04-04 21:03:38 +00:00
kern_mutex.c Change mtx_init() to now take an extra argument. The third argument is 2002-04-04 20:52:27 +00:00
kern_ntptime.c suser is Giant safe, so optimize a pointless case. 2002-04-19 09:20:13 +00:00
kern_physio.c
kern_poll.c
kern_proc.c - Merge the pgrpsess_lock and proctree_lock sx locks into one proctree_lock 2002-04-16 17:03:05 +00:00
kern_prot.c - Lock proctree_lock instead of pgrpsess_lock. 2002-04-16 17:06:11 +00:00
kern_random.c
kern_resource.c Lock proctree_lock instead of pgrpsess_lock. 2002-04-16 17:11:34 +00:00
kern_sema.c Change callers of mtx_init() to pass in an appropriate lock type name. In 2002-04-04 21:03:38 +00:00
kern_shutdown.c Put back dumppcb, but this time we put a comment to tell what it is for. 2002-04-08 06:59:13 +00:00
kern_sig.c Lock proctree_lock instead of pgrpsess_lock. 2002-04-16 17:11:34 +00:00
kern_subr.c
kern_switch.c
kern_sx.c Set the lock type equal to the lock name for now as all of the current 2002-04-04 20:49:35 +00:00
kern_synch.c
kern_syscalls.c
kern_sysctl.c Update comment regarding the locking of the sysctl tree. 2002-04-02 05:50:07 +00:00
kern_tc.c Improve the implementation of adjtime(2). 2002-04-15 12:23:11 +00:00
kern_time.c Improve the implementation of adjtime(2). 2002-04-15 12:23:11 +00:00
kern_timeout.c Change callers of mtx_init() to pass in an appropriate lock type name. In 2002-04-04 21:03:38 +00:00
kern_xxx.c
ksched.c
link_aout.c
link_elf_obj.c
link_elf.c
linker_if.m
Make.tags.inc
Makefile
makeobjops.pl
makesyscalls.sh
md4c.c
md5c.c
p1003_1b.c
posix4_mib.c
subr_acl_posix1e.c
subr_autoconf.c
subr_blist.c
subr_bus.c Add resource_list_add_next() which returns the RID for the resource added. 2002-03-29 06:42:54 +00:00
subr_clist.c
subr_clock.c Add a generic implementation of inittodr() and resettodr(), as well as 2002-04-04 23:39:10 +00:00
subr_devstat.c
subr_disk.c Implement DIOCGFRONTSTUFF ioctl which reports how many bytes from the start 2002-04-09 15:43:32 +00:00
subr_disklabel.c Change callers of mtx_init() to pass in an appropriate lock type name. In 2002-04-04 21:03:38 +00:00
subr_diskmbr.c
subr_diskslice.c Move generic disk ioctls from <sys/disklabel.h> to <sys/disk.h>. 2002-04-08 09:20:07 +00:00
subr_eventhandler.c Change callers of mtx_init() to pass in an appropriate lock type name. In 2002-04-04 21:03:38 +00:00
subr_hints.c Rework the kernel environment subsystem. We now convert the static 2002-04-17 13:06:36 +00:00
subr_kobj.c
subr_log.c
subr_mbuf.c Change callers of mtx_init() to pass in an appropriate lock type name. In 2002-04-04 21:03:38 +00:00
subr_mchain.c
subr_module.c
subr_param.c Improve the implementation of adjtime(2). 2002-04-15 12:23:11 +00:00
subr_pcpu.c
subr_power.c
subr_prf.c
subr_prof.c
subr_rman.c Change callers of mtx_init() to pass in an appropriate lock type name. In 2002-04-04 21:03:38 +00:00
subr_rtc.c Add a generic implementation of inittodr() and resettodr(), as well as 2002-04-04 23:39:10 +00:00
subr_sbuf.c
subr_scanf.c
subr_smp.c Updated a doubly stale comment about signotify(). Fixed a nearby long line. 2002-04-05 10:00:37 +00:00
subr_taskqueue.c Change callers of mtx_init() to pass in an appropriate lock type name. In 2002-04-04 21:03:38 +00:00
subr_trap.c Moved signal handling and rescheduling from userret() to ast() so that 2002-04-04 17:49:48 +00:00
subr_turnstile.c Change mtx_init() to now take an extra argument. The third argument is 2002-04-04 20:52:27 +00:00
subr_witness.c - Merge the pgrpsess_lock and proctree_lock sx locks into one proctree_lock 2002-04-16 17:03:05 +00:00
subr_xxx.c
sys_generic.c Change callers of mtx_init() to pass in an appropriate lock type name. In 2002-04-04 21:03:38 +00:00
sys_pipe.c Use pmap_extract() instead of pmap_kextract() to retrieve the physical 2002-04-13 20:09:06 +00:00
sys_process.c Don't allow one to trace an ancestor when already traced. 2002-04-14 17:12:55 +00:00
sys_socket.c
syscalls.c Rework the kernel environment subsystem. We now convert the static 2002-04-17 13:06:36 +00:00
syscalls.master Add an entry for the kenv(2) syscall (code to follow). 2002-04-17 13:05:13 +00:00
sysv_ipc.c
sysv_msg.c
sysv_sem.c
sysv_shm.c
tty_compat.c
tty_conf.c
tty_cons.c
tty_pty.c - Lock proctree_lock instead of pgrpsess_lock. 2002-04-16 17:09:22 +00:00
tty_subr.c
tty_tty.c
tty.c - Lock proctree_lock instead of pgrpsess_lock. 2002-04-16 17:09:22 +00:00
uipc_accf.c
uipc_domain.c
uipc_mbuf2.c just merged cosmetic changes from KAME to ease sync between KAME and FreeBSD. 2002-04-19 04:46:24 +00:00
uipc_mbuf.c Fix corner case where m_len was not being initialized. 2002-04-12 00:01:50 +00:00
uipc_proto.c
uipc_sockbuf.c
uipc_socket2.c
uipc_socket.c There's only one socket zone so we don't need to remember it 2002-04-08 03:04:22 +00:00
uipc_syscalls.c In sendfile(), use the vn_rdwr() helper function, rather than manually 2002-04-19 13:46:24 +00:00
uipc_usrreq.c
vfs_acl.c
vfs_aio.c Lock proctree_lock instead of pgrpsess_lock. 2002-04-16 17:11:34 +00:00
vfs_bio.c Change callers of mtx_init() to pass in an appropriate lock type name. In 2002-04-04 21:03:38 +00:00
vfs_cache.c Turn #ifdef LOOKUP_SHARED into #ifndef LOOKUP_EXCLUSIVE to enable this 2002-04-09 05:14:17 +00:00
vfs_cluster.c
vfs_conf.c Rework the kernel environment subsystem. We now convert the static 2002-04-17 13:06:36 +00:00
vfs_default.c
vfs_export.c
vfs_extattr.c The recent NFS forced unmount improvements introduced a side-effect 2002-04-17 01:07:29 +00:00
vfs_init.c
vfs_lookup.c
vfs_mount.c Rework the kernel environment subsystem. We now convert the static 2002-04-17 13:06:36 +00:00
vfs_subr.c Change callers of mtx_init() to pass in an appropriate lock type name. In 2002-04-04 21:03:38 +00:00
vfs_syscalls.c The recent NFS forced unmount improvements introduced a side-effect 2002-04-17 01:07:29 +00:00
vfs_vnops.c Lock proctree_lock instead of pgrpsess_lock. 2002-04-16 17:11:34 +00:00
vnode_if.pl
vnode_if.src