From owner-freebsd-net@FreeBSD.ORG Fri Feb 1 12:04:23 2013 Return-Path: Delivered-To: net@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by hub.freebsd.org (Postfix) with ESMTP id A43B2925 for ; Fri, 1 Feb 2013 12:04:23 +0000 (UTC) (envelope-from glebius@FreeBSD.org) Received: from cell.glebius.int.ru (glebius.int.ru [81.19.69.10]) by mx1.freebsd.org (Postfix) with ESMTP id 1F7B4FA8 for ; Fri, 1 Feb 2013 12:04:22 +0000 (UTC) Received: from cell.glebius.int.ru (localhost [127.0.0.1]) by cell.glebius.int.ru (8.14.6/8.14.6) with ESMTP id r11C4ErD097458 for ; Fri, 1 Feb 2013 16:04:14 +0400 (MSK) (envelope-from glebius@FreeBSD.org) Received: (from glebius@localhost) by cell.glebius.int.ru (8.14.6/8.14.6/Submit) id r11C4EQ1097457 for net@FreeBSD.org; Fri, 1 Feb 2013 16:04:14 +0400 (MSK) (envelope-from glebius@FreeBSD.org) X-Authentication-Warning: cell.glebius.int.ru: glebius set sender to glebius@FreeBSD.org using -f Date: Fri, 1 Feb 2013 16:04:14 +0400 From: Gleb Smirnoff To: net@FreeBSD.org Subject: m_get2() name Message-ID: <20130201120414.GG91075@FreeBSD.org> MIME-Version: 1.0 Content-Type: text/plain; charset=koi8-r Content-Disposition: inline User-Agent: Mutt/1.5.21 (2010-09-15) X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 01 Feb 2013 12:04:23 -0000 Hi! The m_get2() function allocates a single mbuf with enough space to hold specified amount of data. It can return either a single mbuf, an mbuf with a standard cluster, page size cluster, or jumbo cluster. It is alredy utilized in pfsync, bpf, libalias and soon to be utilized in ieee802111. There are probably more places in stack where it can be used. The question is about its name. Once introduced, I just gave it name "m_get2" to avoid discussion with myself about bikeshed colour and continue hacking. Now it is getting used wider, and before we branch any stable branch off the head, we have last chance to rename it to smth more meaningful. Any ideas on better name are welcome. -- Totus tuus, Glebius.