summaryrefslogtreecommitdiffstats
path: root/sys/kern/uipc_syscalls.c
diff options
context:
space:
mode:
authorbmilekic <bmilekic@FreeBSD.org>2000-11-11 23:04:15 +0000
committerbmilekic <bmilekic@FreeBSD.org>2000-11-11 23:04:15 +0000
commit4ddcfae4cab3df192125ede9f834bfe2a6322b19 (patch)
tree723ed51ac2a1c5e03e43013a4ae1656e0520be9a /sys/kern/uipc_syscalls.c
parent3d05ea18329d0232b9f11453c046a6ba9a0b88fd (diff)
downloadFreeBSD-src-4ddcfae4cab3df192125ede9f834bfe2a6322b19.zip
FreeBSD-src-4ddcfae4cab3df192125ede9f834bfe2a6322b19.tar.gz
* Have m_pulldown() use the new M_WRITABLE() macro in order to determine
whether the given ext_buf is shared. * Have the sf_bufs be setup with the mbuf subsystem using MEXTADD() with the two new arguments. Note: m_pulldown() is somewhat crotchy; the added comment explains the situation. Reviewed by: jlemon
Diffstat (limited to 'sys/kern/uipc_syscalls.c')
-rw-r--r--sys/kern/uipc_syscalls.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/sys/kern/uipc_syscalls.c b/sys/kern/uipc_syscalls.c
index e3edad8..83ddc35 100644
--- a/sys/kern/uipc_syscalls.c
+++ b/sys/kern/uipc_syscalls.c
@@ -1625,7 +1625,8 @@ retry_lookup:
/*
* Setup external storage for mbuf.
*/
- MEXTADD(m, sf->kva, PAGE_SIZE, sf_buf_free, NULL);
+ MEXTADD(m, sf->kva, PAGE_SIZE, sf_buf_free, NULL, M_RDONLY,
+ EXT_SFBUF);
m->m_data = (char *) sf->kva + pgoff;
m->m_pkthdr.len = m->m_len = xfsize;
/*
OpenPOWER on IntegriCloud