Skip to content

Commit

Permalink
memdesc: Helper function to construct mbuf chain backed by memdesc bu…
Browse files Browse the repository at this point in the history
…ffer

memdesc_alloc_ext_mbufs constructs a chain of external (M_EXT or
M_EXTPG) mbufs backed by a data buffer described by a memory
descriptor.

Since memory descriptors are not an actual buffer just a description
of a buffer, the caller is required to supply a couple of helper
routines to manage allocation of the raw mbufs and associating them
with a reference to the underlying buffer.

Reviewed by:	markj
Sponsored by:	Chelsio Communications
Differential Revision:	https://reviews.freebsd.org/D42933
  • Loading branch information
bsdjhb committed Mar 14, 2024
2 parents 7e9355a + a9b6151 commit a0f8166
Show file tree
Hide file tree
Showing 2 changed files with 510 additions and 0 deletions.
Loading

0 comments on commit a0f8166

Please sign in to comment.