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
..
2002-04-19 08:16:59 +00:00
2002-04-18 14:47:34 +00:00
2002-04-19 09:24:12 +00:00
2002-04-19 09:44:50 +00:00
2002-04-17 16:12:24 +00:00
2002-03-20 10:12:07 +00:00
2002-03-19 22:20:14 +00:00
2002-04-16 12:15:17 +00:00
2002-04-19 09:19:37 +00:00
2002-04-01 19:22:04 +00:00