diff options
author | rwatson <rwatson@FreeBSD.org> | 2002-04-19 13:46:24 +0000 |
---|---|---|
committer | rwatson <rwatson@FreeBSD.org> | 2002-04-19 13:46:24 +0000 |
commit | 4d39491e7e33d322000e9be9d34efe77e4c0b080 (patch) | |
tree | e275a8db8c380fc55be579c4f41c0ea9e9b755f1 /MAINTAINERS | |
parent | 63ab78794ef71a08d97b6d4a56e5031a29e86e95 (diff) | |
download | FreeBSD-src-4d39491e7e33d322000e9be9d34efe77e4c0b080.zip FreeBSD-src-4d39491e7e33d322000e9be9d34efe77e4c0b080.tar.gz |
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
Diffstat (limited to 'MAINTAINERS')
0 files changed, 0 insertions, 0 deletions