Index: share/man/man9/mbuf.9 =================================================================== RCS file: /cvs/src/share/man/man9/mbuf.9,v retrieving revision 1.100 diff -u -p -r1.100 mbuf.9 --- share/man/man9/mbuf.9 19 Jul 2016 08:13:46 -0000 1.100 +++ share/man/man9/mbuf.9 16 Aug 2016 03:17:22 -0000 @@ -29,7 +29,6 @@ .Dt MGET 9 .Os .Sh NAME -.Nm m_copym2 , .Nm m_copym , .Nm m_free , .Nm m_get , @@ -70,8 +69,6 @@ .Sh SYNOPSIS .In sys/mbuf.h .Ft struct mbuf * -.Fn m_copym2 "struct mbuf *m" "int off" "int len" "int wait" -.Ft struct mbuf * .Fn m_copym "struct mbuf *m" "int off" "int len" "int wait" .Ft struct mbuf * .Fn m_free "struct mbuf *m" @@ -436,12 +433,6 @@ The parameter can be M_WAIT or M_DONTWAIT. It does not copy clusters, it just increases their reference count. -.It Fn m_copym2 "struct mbuf *m" "int off" "int len" "int wait" -The same as -.Fn m_copym -except that it copies cluster mbufs, whereas -.Fn m_copym -just increases the reference count of the clusters. .It Fn m_free "struct mbuf *m" Free the mbuf pointed to by .Fa m . Index: sys/kern/uipc_mbuf.c =================================================================== RCS file: /cvs/src/sys/kern/uipc_mbuf.c,v retrieving revision 1.226 diff -u -p -r1.226 uipc_mbuf.c --- sys/kern/uipc_mbuf.c 13 Jun 2016 21:24:43 -0000 1.226 +++ sys/kern/uipc_mbuf.c 16 Aug 2016 03:17:22 -0000 @@ -575,16 +575,6 @@ m_copym(struct mbuf *m, int off, int len return m_copym0(m, off, len, wait, 0); /* shallow copy on M_EXT */ } -/* - * m_copym2() is like m_copym(), except it COPIES cluster mbufs, instead - * of merely bumping the reference count. - */ -struct mbuf * -m_copym2(struct mbuf *m, int off, int len, int wait) -{ - return m_copym0(m, off, len, wait, 1); /* deep copy */ -} - struct mbuf * m_copym0(struct mbuf *m0, int off, int len, int wait, int deep) { Index: sys/sys/mbuf.h =================================================================== RCS file: /cvs/src/sys/sys/mbuf.h,v retrieving revision 1.216 diff -u -p -r1.216 mbuf.h --- sys/sys/mbuf.h 19 Jul 2016 08:13:45 -0000 1.216 +++ sys/sys/mbuf.h 16 Aug 2016 03:17:22 -0000 @@ -423,7 +423,6 @@ extern int max_protohdr; /* largest pro extern int max_hdr; /* largest link+protocol header */ void mbinit(void); -struct mbuf *m_copym2(struct mbuf *, int, int, int); struct mbuf *m_copym(struct mbuf *, int, int, int); struct mbuf *m_free(struct mbuf *); struct mbuf *m_get(int, int);