A mbuf pool from which to allocate mbufs. This contains a pointer to the os mempool to allocate mbufs out of, the total number of elements in the pool, and the amount of "user" data in a non-packet header mbuf. The total pool size, in bytes, should be: os_mbuf_count * (omp_databuf_len + sizeof(struct os_mbuf))
MSYS is a system level mbuf registry. Allows the system to share packet buffers amongst the various networking stacks that can be running simultaeneously. Mbuf pools are created in the system initialization code, and then when a mbuf is allocated out of msys, it will try and find the best fit based upon estimated mbuf size. os_msys_register() registers a mbuf pool with MSYS, and allows MSYS to allocate mbufs out of it.
Mallocs a block of memory and initializes an mbuf pool to use it. The specified block_size indicates the size of an mbuf acquired from the pool if it does not contain a pkthdr.
Mallocs a block of memory and initializes an mbuf pool to use it. The specified block_size indicates the size of an mbuf acquired from the pool if it contains a pkthdr.
Examples
os_mbuf_pool is referenced by 2 libraries and example projects: