]> Gitweb @ Texas Instruments - Open Source Git Repositories - git.TI.com/gitweb - ipc/ludev.git/commit
Allow pool size to be > 2 GB
authorRobert Tivy <rtivy@ti.com>
Thu, 9 Jan 2014 23:15:41 +0000 (15:15 -0800)
committerChris Ring <cring@ti.com>
Tue, 14 Jan 2014 00:32:30 +0000 (16:32 -0800)
commit4595cbb51abe8aaa10d06a6dc8d77c2a84b39d15
tree59cc59005ca9571d3fb6e630c183605ca792abca
parent595b8c7cffa9c0ea72e4fcf1357cb28fe5b34c96
Allow pool size to be > 2 GB

Change pool-based sizes to be unsigned long long instead of int.

The interface is still limited to size_t (4 byte) amounts, so the only
way to effectively allocate a pool buffer that is > 2 GB in size is to
use CMEM_allocPoolPhys(), which doesn't involve a size parameter nor
need a size back from the driver since it doesn't mmap() the buffer.
When using CMEM_allocPoolPhys(), the user "knows" the pool number that
contains the big buffers and also the size of those buffers.
src/cmem/module/cmemk.c