* Drop a record off the front of a sockbuf and move the next record to the * front. */
| 1695 | * front. |
| 1696 | */ |
| 1697 | void |
| 1698 | sbdroprecord_locked(struct sockbuf *sb) |
| 1699 | { |
| 1700 | struct mbuf *m; |
| 1701 | |
| 1702 | SOCKBUF_LOCK_ASSERT(sb); |
| 1703 | |
| 1704 | m = sb->sb_mb; |
| 1705 | if (m) { |
| 1706 | sb->sb_mb = m->m_nextpkt; |
| 1707 | do { |
| 1708 | sbfree(sb, m); |
| 1709 | m = m_free(m); |
| 1710 | } while (m); |
| 1711 | } |
| 1712 | SB_EMPTY_FIXUP(sb); |
| 1713 | } |
| 1714 | |
| 1715 | /* |
| 1716 | * Drop a record off the front of a sockbuf and move the next record to the |
no test coverage detected