Date: Thu, 09 May 2002 10:28:45 -0700 From: Terry Lambert <tlambert2@mindspring.com> To: mark tinguely <tinguely@web.cs.ndsu.nodak.edu> Cc: freebsd-hackers@FreeBSD.ORG, les@safety.net Subject: Re: Mbuf questions Message-ID: <3CDAB1CD.B62BDA28@mindspring.com> References: <200205091323.g49DN8H00652@web.cs.ndsu.nodak.edu>
next in thread | previous in thread | raw e-mail | index | archive | help
mark tinguely wrote: > why don't you place the buffer pointer into an external mbuf. > this requires you to set several fields but you can use the macro > MCLGET as a reference. > > You will also need to use the ext_free() pointer to a routine to correctly > free the buffer when the mbuf is released. There is only one ext_free() > per mbuf, if a stack layer also uses this function, then we lose the > earlier function unless saved/restored as part of the mbuf setup/freeing. And if this doesn't make sense to the original poster... look at the "sendfile" source code, which uses external mbufs that point to buffer cache entries. -- Terry To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?3CDAB1CD.B62BDA28>