summaryrefslogtreecommitdiffstats
path: root/sys/kern/uipc_shm.c
diff options
context:
space:
mode:
authorkib <kib@FreeBSD.org>2013-09-11 06:41:15 +0000
committerkib <kib@FreeBSD.org>2013-09-11 06:41:15 +0000
commit55cc853a4dedac590d07d123dcd1b913974d2d0a (patch)
tree567e97d885f1f1552e8155c678aa16506b7dfdb9 /sys/kern/uipc_shm.c
parente9b1b9b12ccb3a5aec0a11fceb8044e29cbe8db9 (diff)
downloadFreeBSD-src-55cc853a4dedac590d07d123dcd1b913974d2d0a.zip
FreeBSD-src-55cc853a4dedac590d07d123dcd1b913974d2d0a.tar.gz
Implement sendfile(2) for the posix shared memory segment file descriptor,
in addition to the regular files. Requested by: alc Discussed with: emaste Tested by: pho (previous version) Sponsored by: The FreeBSD Foundation Approved by: re (hrs)
Diffstat (limited to 'sys/kern/uipc_shm.c')
-rw-r--r--sys/kern/uipc_shm.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/kern/uipc_shm.c b/sys/kern/uipc_shm.c
index 70829f3..372b583 100644
--- a/sys/kern/uipc_shm.c
+++ b/sys/kern/uipc_shm.c
@@ -134,7 +134,7 @@ static struct fileops shm_ops = {
.fo_close = shm_close,
.fo_chmod = shm_chmod,
.fo_chown = shm_chown,
- .fo_sendfile = invfo_sendfile,
+ .fo_sendfile = vn_sendfile,
.fo_seek = shm_seek,
.fo_flags = DFLAG_PASSABLE | DFLAG_SEEKABLE
};
OpenPOWER on IntegriCloud