From owner-freebsd-questions@FreeBSD.ORG Thu Mar 20 16:36:12 2008 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 050941065671 for ; Thu, 20 Mar 2008 16:36:12 +0000 (UTC) (envelope-from yonyossef.lists@gmail.com) Received: from ug-out-1314.google.com (ug-out-1314.google.com [66.249.92.173]) by mx1.freebsd.org (Postfix) with ESMTP id 926358FC23 for ; Thu, 20 Mar 2008 16:36:11 +0000 (UTC) (envelope-from yonyossef.lists@gmail.com) Received: by ug-out-1314.google.com with SMTP id y2so1732863uge.37 for ; Thu, 20 Mar 2008 09:36:10 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=beta; h=domainkey-signature:received:received:message-id:date:from:to:subject:mime-version:content-type; bh=MvNFJPRmIyBSAiz93eiRBnzw82yLT5ialaURpgstEa8=; b=fDlCHbOJ6KSNk0jsyMpXRE2nQiOo8JMWnfeAjlVhq/MHWnB2yBJI4JLir0+NFLKikbfxQD76yDjAj3eKERH2MVg9Q+rj6w5sVDywHzOILVOiGdfcPFlz8jLjYOJPXnOuq3+4aLj/mkZsXIsJcSnurq2G/lngZi2pMUX+FwmLoz4= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=message-id:date:from:to:subject:mime-version:content-type; b=en22o75E+6CtE2As3+cI61pbYcjBGJqssxu15VdDAC95z7q89KrWfLMA0xXXOh2Y5xsnbcqsam5aX7z/cmG+ITPowQeJldNQ9KJK2934Pz6BEbpvHQNC8xb6IuOU5Ku4gU5+ivh/nNeJTmKTzBMB8+D8vcME0RBsyUQJSIC/Ius= Received: by 10.150.95.20 with SMTP id s20mr936753ybb.58.1206029335926; Thu, 20 Mar 2008 09:08:55 -0700 (PDT) Received: by 10.151.12.5 with HTTP; Thu, 20 Mar 2008 09:08:55 -0700 (PDT) Message-ID: <20def4870803200908q63137451p7bf052337a2cc5e0@mail.gmail.com> Date: Thu, 20 Mar 2008 18:08:55 +0200 From: "Mr Y" To: freebsd-questions@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline X-Content-Filtered-By: Mailman/MimeDel 2.1.5 Subject: bus_dmamem_alloc X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 20 Mar 2008 16:36:12 -0000 I'm trying to use bus_dmamem_alloc. The function man says: /* * Allocate a piece of memory that can be efficiently mapped into * bus device space based on the constraints listed in the dma tag. * A dmamap to for use with dmamap_load is also allocated. */ so I'm running: err = bus_dmamem_alloc(ring->dma_tag, &ring->buf, BUS_DMA_NOWAIT|BUS_DMA_ALLOCNOW, &ring->dma_map); but after calling bus_dmamem_allloc the dma_map variable is still NULL. is this OK? Thx, Yony