void mm_netbuf_prepare(struct mm_netbuf_socket *sock) { mm_core_t core = sock->sock.event.core; mm_arena_t arena = mm_core_getarena(core); mm_buffer_prepare(&sock->rbuf, arena, core); mm_buffer_prepare(&sock->tbuf, arena, core); }
mm_netbuf_prepare(struct mm_netbuf_socket *sock) { mm_buffer_prepare(&sock->rxbuf); mm_buffer_prepare(&sock->txbuf); }