Re: User Space API handling of large buffer

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi.

On Thu, Mar 27, 2008 at 02:50:47PM -0700, Loc Ho (lho@xxxxxxxx) wrote:
> While creating user space API for Linux Crypto, I have a problem with
> large buffer. I am look for suggestion as to how to handle large user
> buffer greater than PAGE_SIZE. In the event, call issues an operation
> with data larger than PAGE_SIZE, must I create an array of page size
> scatterlist? Or can I using just one scatterlist entry? 
> 
> Would Linux allocates non-continuous memory but use TLB to make them
> look continous when calling kmalloc?

With page tables it will be vmalloc(), but that is not what we want,
since hardware requires physical pages and thus will not work with
vmalloced area (without knowing that it was vmalloced), so better split
buffer into pages and link them into scatterlists.

-- 
	Evgeniy Polyakov
--
To unsubscribe from this list: send the line "unsubscribe linux-crypto" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [Kernel]     [Gnu Classpath]     [Gnu Crypto]     [DM Crypt]     [Netfilter]     [Bugtraq]

  Powered by Linux