From 7bac00c782e27bc2d1e814f830b440c87f42c62c Mon Sep 17 00:00:00 2001 From: David Gwynne Date: Fri, 8 Apr 2016 03:19:34 +0000 Subject: m_freem returns an mbuf like m_free now this steals the m_free words to describe what m_freem does now. --- share/man/man9/mbuf.9 | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) (limited to 'share/man/man9') diff --git a/share/man/man9/mbuf.9 b/share/man/man9/mbuf.9 index fd0530076a9..ebc7c85e0e0 100644 --- a/share/man/man9/mbuf.9 +++ b/share/man/man9/mbuf.9 @@ -1,4 +1,4 @@ -.\" $OpenBSD: mbuf.9,v 1.96 2016/04/08 03:04:15 dlg Exp $ +.\" $OpenBSD: mbuf.9,v 1.97 2016/04/08 03:19:33 dlg Exp $ .\" .\" Copyright (c) 2001 Jean-Jacques Bernard-Gundol .\" All rights reserved. @@ -103,7 +103,7 @@ .Fn m_copyback "struct mbuf *m0" "int off" "int len" "const void *cp" "int wait" .Ft int .Fn m_defrag "struct mbuf *m" "int wait" -.Ft void +.Ft struct mbuf * .Fn m_freem "struct mbuf *m" .Ft void .Fn m_reclaim "void" @@ -631,11 +631,15 @@ remains in existence and unchanged on failure. .It Fn m_freem "struct mbuf *m" Free the mbuf chain pointed to by .Fa m . +A pointer to the next mbuf in the list linked by m_nextpkt, +if it exists, is returned by the function. If .Fa m is a .Dv NULL -pointer, no action occurs. +pointer, no action occurs and +.Dv NULL +is returned. .It Fn m_reclaim "void" Ask protocols to free unused memory space. .It Fn m_copydata "struct mbuf *m" "int off" "int len" "caddr_t cp" -- cgit v1.2.3