From owner-cvs-src@FreeBSD.ORG Wed Mar 26 12:29:15 2003 Return-Path: Delivered-To: cvs-src@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id DD80937B404; Wed, 26 Mar 2003 12:29:15 -0800 (PST) Received: from repoman.freebsd.org (repoman.freebsd.org [216.136.204.115]) by mx1.FreeBSD.org (Postfix) with ESMTP id 7AC5643F3F; Wed, 26 Mar 2003 12:29:15 -0800 (PST) (envelope-from rwatson@FreeBSD.org) Received: from repoman.freebsd.org (localhost [127.0.0.1]) by repoman.freebsd.org (8.12.6/8.12.6) with ESMTP id h2QKTF0U044877; Wed, 26 Mar 2003 12:29:15 -0800 (PST) (envelope-from rwatson@repoman.freebsd.org) Received: (from rwatson@localhost) by repoman.freebsd.org (8.12.6/8.12.6/Submit) id h2QKTFg3044876; Wed, 26 Mar 2003 12:29:15 -0800 (PST) Message-Id: <200303262029.h2QKTFg3044876@repoman.freebsd.org> From: Robert Watson Date: Wed, 26 Mar 2003 12:29:15 -0800 (PST) To: src-committers@FreeBSD.org, cvs-src@FreeBSD.org, cvs-all@FreeBSD.org X-FreeBSD-CVS-Branch: HEAD X-Spam-Status: No, hits=0.0 required=5.0 tests=none version=2.50 X-Spam-Level: X-Spam-Checker-Version: SpamAssassin 2.50 (1.173-2003-02-20-exp) Subject: cvs commit: src/sys/sys mbuf.h X-BeenThere: cvs-src@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: CVS commit messages for the src tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 26 Mar 2003 20:29:17 -0000 rwatson 2003/03/26 12:29:15 PST FreeBSD src repository Modified files: sys/sys mbuf.h Log: Add MBTOM(), a macro that converts from an mbuf blocking disposition flag (M_DONTWAIT / M_TRYWAIT) to a malloc(9) blocking disposition flag (M_NOWAIT, M_WAITOK). The semantic match isn't perfect, but for scenarios where malloc data is used in the network stack, such as for MAC labeling or for m_tags, we sometimes need to map from one to the other to get the right blocking behavior. Obtained from: TrustedBSD Project Sponsored by: DARPA, Network Associates Laboratories Revision Changes Path 1.116 +1 -0 src/sys/sys/mbuf.h