diff options
author | Claudio Jeker <claudio@cvs.openbsd.org> | 2018-11-30 11:58:48 +0000 |
---|---|---|
committer | Claudio Jeker <claudio@cvs.openbsd.org> | 2018-11-30 11:58:48 +0000 |
commit | 24285a20bc95575a342186d7acae80599e54f8e8 (patch) | |
tree | dc6471b815f0f32a018cfb5ef9ae748920a680bb | |
parent | 090ea803ae872def467041276bcecf9a050d651e (diff) |
Document m_align().
With and OK bluhm@, jmc@
-rw-r--r-- | share/man/man9/mbuf.9 | 15 |
1 files changed, 13 insertions, 2 deletions
diff --git a/share/man/man9/mbuf.9 b/share/man/man9/mbuf.9 index edebe40914a..ab1f6d7393f 100644 --- a/share/man/man9/mbuf.9 +++ b/share/man/man9/mbuf.9 @@ -1,4 +1,4 @@ -.\" $OpenBSD: mbuf.9,v 1.116 2018/11/09 19:04:15 jmc Exp $ +.\" $OpenBSD: mbuf.9,v 1.117 2018/11/30 11:58:47 claudio Exp $ .\" .\" Copyright (c) 2001 Jean-Jacques Bernard-Gundol <jjbg@openbsd.org> .\" All rights reserved. @@ -25,7 +25,7 @@ .\" (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF .\" THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. .\" -.Dd $Mdocdate: November 9 2018 $ +.Dd $Mdocdate: November 30 2018 $ .Dt MGET 9 .Os .Sh NAME @@ -60,6 +60,7 @@ .Nm MCLGET , .Nm MCLGETI , .Nm MEXTADD , +.Nm m_align , .Nm M_ALIGN , .Nm MH_ALIGN , .Nm M_READONLY , @@ -130,6 +131,8 @@ .Fn MCLGETI "struct mbuf *m" "int how" "struct ifnet *ifp" "int len" .Fn MEXTADD "struct mbuf *m" "caddr_t buf" "u_int size" "int flags" \ "void (*free)(caddr_t, u_int, void *)" "void *arg" +.Ft void +.Fn m_align "struct mbuf *m" "int len" .Fn M_ALIGN "struct mbuf *m" "int len" .Fn MH_ALIGN "struct mbuf *m" "int len" .Fn M_READONLY "struct mbuf *m" @@ -746,6 +749,14 @@ Add pre-allocated storage to the mbuf pointed to by .Fa m . On success, the flag M_EXT is set in the mbuf, and M_EXTWR is specified in .Fa flags . +.It Fn m_align "struct mbuf *m" "int len" +Set the +.Fa m_data +pointer of the newly allocated mbuf +.Fa m +to an object of the specified size +.Fa len +at the end of this mbuf data area, longword aligned. .It Fn M_ALIGN "struct mbuf *m" "int len" Set the .Fa m_data |