lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-Id: <20070510.014751.74749340.davem@davemloft.net>
Date:	Thu, 10 May 2007 01:47:51 -0700 (PDT)
From:	David Miller <davem@...emloft.net>
To:	maheshk@...c.in
Cc:	linux-kernel@...r.kernel.org, kernelnewbies@...linux.org
Subject: Re: [HOWTO] accessing the DMA mapped data

From: Mahesh <maheshk@...c.in>
Date: Thu, 10 May 2007 13:28:13 +0530

> I have a small question regarding the accessing the data in the DMA 
> mapped  region (in the driver).  In my driver I only have the 
> 'dma_addr_t addr' variable which is result after the 'dma_map_single'. 
> I don't have access to the virtual address of the data region.
> 
> Is there helper routine which we will give me the virtual address back 
> from the DMA mapped address???

You can eithe keep track of this yourself, or (depending upon
your usage) you might be able to use DMA pools, see
dma_pool_create() and friends.
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ