From owner-svn-src-all@FreeBSD.ORG Sat Jun 20 18:27:19 2009 Return-Path: Delivered-To: svn-src-all@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id C3AD1106566C; Sat, 20 Jun 2009 18:27:19 +0000 (UTC) (envelope-from rwatson@FreeBSD.org) Received: from svn.freebsd.org (svn.freebsd.org [IPv6:2001:4f8:fff6::2c]) by mx1.freebsd.org (Postfix) with ESMTP id B21AC8FC14; Sat, 20 Jun 2009 18:27:19 +0000 (UTC) (envelope-from rwatson@FreeBSD.org) Received: from svn.freebsd.org (localhost [127.0.0.1]) by svn.freebsd.org (8.14.3/8.14.3) with ESMTP id n5KIRJfY083488; Sat, 20 Jun 2009 18:27:19 GMT (envelope-from rwatson@svn.freebsd.org) Received: (from rwatson@localhost) by svn.freebsd.org (8.14.3/8.14.3/Submit) id n5KIRJFD083486; Sat, 20 Jun 2009 18:27:19 GMT (envelope-from rwatson@svn.freebsd.org) Message-Id: <200906201827.n5KIRJFD083486@svn.freebsd.org> From: Robert Watson Date: Sat, 20 Jun 2009 18:27:19 +0000 (UTC) To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org X-SVN-Group: head MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Cc: Subject: svn commit: r194549 - head/sys/sys X-BeenThere: svn-src-all@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "SVN commit messages for the entire src tree \(except for " user" and " projects" \)" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 20 Jun 2009 18:27:20 -0000 Author: rwatson Date: Sat Jun 20 18:27:19 2009 New Revision: 194549 URL: http://svn.freebsd.org/changeset/base/194549 Log: Remove definition of dtom(), which converted a data pointer into a pointer to the containing mbuf. This eliminates a strong assumption about the layout of network buffer memory, giving us greater flexibility to revise mbuf semantics in the future. Modified: head/sys/sys/mbuf.h Modified: head/sys/sys/mbuf.h ============================================================================== --- head/sys/sys/mbuf.h Sat Jun 20 18:24:29 2009 (r194548) +++ head/sys/sys/mbuf.h Sat Jun 20 18:27:19 2009 (r194549) @@ -60,12 +60,12 @@ #ifdef _KERNEL /*- - * Macros for type conversion: + * Macro for type conversion: convert mbuf pointer to data pointer of correct + * type: + * * mtod(m, t) -- Convert mbuf pointer to data pointer of correct type. - * dtom(x) -- Convert data pointer within mbuf to mbuf pointer (XXX). */ #define mtod(m, t) ((t)((m)->m_data)) -#define dtom(x) ((struct mbuf *)((intptr_t)(x) & ~(MSIZE-1))) /* * Argument structure passed to UMA routines during mbuf and packet