]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
Give MEXTADD() another argument to make both void pointers to the
authorPoul-Henning Kamp <phk@FreeBSD.org>
Fri, 1 Feb 2008 19:36:27 +0000 (19:36 +0000)
committerPoul-Henning Kamp <phk@FreeBSD.org>
Fri, 1 Feb 2008 19:36:27 +0000 (19:36 +0000)
commitcf827063a9684f2300b3496f588aaf3e69c45067
treeb6b52f57b7886a5c374749c60734afe1b730790f
parent942fe01f6169e0d7da79f6b35f96ed07c571f121
Give MEXTADD() another argument to make both void pointers to the
free function controlable, instead of passing the KVA of the buffer
storage as the first argument.

Fix all conventional users of the API to pass the KVA of the buffer
as the first argument, to make this a no-op commit.

Likely break the only non-convetional user of the API, after informing
the relevant committer.

Update the mbuf(9) manual page, which was already out of sync on
this point.

Bump __FreeBSD_version to 800016 as there is no way to tell how
many arguments a CPP macro needs any other way.

This paves the way for giving sendfile(9) a way to wait for the
passed storage to have been accessed before returning.

This does not affect the memory layout or size of mbufs.

Parental oversight by: sam and rwatson.

No MFC is anticipated.
20 files changed:
share/man/man9/mbuf.9
sys/compat/ndis/kern_ndis.c
sys/dev/cxgb/cxgb_sge.c
sys/dev/cxgb/ulp/tom/cxgb_cpl_socket.c
sys/dev/hatm/if_hatm_intr.c
sys/dev/iscsi/initiator/isc_soc.c
sys/dev/lge/if_lge.c
sys/dev/msk/if_msk.c
sys/dev/nfe/if_nfe.c
sys/dev/patm/if_patm_rx.c
sys/dev/sk/if_sk.c
sys/dev/ti/if_ti.c
sys/dev/wpi/if_wpi.c
sys/kern/kern_mbuf.c
sys/kern/uipc_cow.c
sys/kern/uipc_mbuf.c
sys/kern/uipc_syscalls.c
sys/pci/if_wb.c
sys/sys/mbuf.h
sys/sys/param.h