From owner-freebsd-hackers Wed May 8 7:31:16 2002 Delivered-To: freebsd-hackers@freebsd.org Received: from ns3.safety.net (ns3.safety.net [216.40.201.32]) by hub.freebsd.org (Postfix) with ESMTP id A539437B426 for ; Wed, 8 May 2002 07:30:47 -0700 (PDT) Received: (from les@localhost) by ns3.safety.net (8.10.2/8.10.2) id g48EUll27242 for freebsd-hackers@freebsd.org; Wed, 8 May 2002 07:30:47 -0700 From: Les Biffle Message-Id: <200205081430.g48EUll27242@ns3.safety.net> Subject: Mbuf questions To: freebsd-hackers@freebsd.org Date: Wed, 8 May 2002 07:30:47 -0700 (MST) X-Mailer: ELM [version 2.4ME+ PL94 (25)] MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset=US-ASCII Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG Can someone give a pointer to the procedure for doing the following? I've searched the website and archives as well as my source tree, but nothing seems pertinent. In FreeBSD 3.5: A kernel routine uses m_copydata to gather ethernet data into a KMALLOC'd buffer, processes it, and now needs to put it back into an mbuf. I would prefer that the resulting mbuf have the data together in an external buffer, so that the cycles spent aren't wasted. I currently use m_copyback to put the data back into the original mbuf chain, but an going nuts trying to get the chain to shrink when the data shrinks without the next invocation of m_copydata panicing. Thanks, -Les -- Les Biffle (480) 585-4099 les@safety.net http://www.les.safety.net/ Network Safety Corp., 5831 E. Dynamite Blvd., Cave Creek, AZ 85331 To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message