diff options
author | glebius <glebius@FreeBSD.org> | 2013-08-15 07:54:31 +0000 |
---|---|---|
committer | glebius <glebius@FreeBSD.org> | 2013-08-15 07:54:31 +0000 |
commit | 722a1a5e5d54a4935a4136368f443f6c88ca0d71 (patch) | |
tree | 72f140bc20e3f03e8744a0112282734ba89f474b /sys/kern/uipc_mqueue.c | |
parent | 8c7687b41c874820110a7106c1167f5b0e3fc7d0 (diff) | |
download | FreeBSD-src-722a1a5e5d54a4935a4136368f443f6c88ca0d71.zip FreeBSD-src-722a1a5e5d54a4935a4136368f443f6c88ca0d71.tar.gz |
Make sendfile() a method in the struct fileops. Currently only
vnode backed file descriptors have this method implemented.
Reviewed by: kib
Sponsored by: Nginx, Inc.
Sponsored by: Netflix
Diffstat (limited to 'sys/kern/uipc_mqueue.c')
-rw-r--r-- | sys/kern/uipc_mqueue.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/sys/kern/uipc_mqueue.c b/sys/kern/uipc_mqueue.c index 11acedb..5a1a414 100644 --- a/sys/kern/uipc_mqueue.c +++ b/sys/kern/uipc_mqueue.c @@ -2597,7 +2597,8 @@ static struct fileops mqueueops = { .fo_stat = mqf_stat, .fo_chmod = mqf_chmod, .fo_chown = mqf_chown, - .fo_close = mqf_close + .fo_close = mqf_close, + .fo_sendfile = invfo_sendfile, }; static struct vop_vector mqfs_vnodeops = { |