Am Mittwoch, 28. Februar 2018 16:28:18 UTC+1 schrieb john3909:
>
>
> On Feb 28, 2018, at 6:47 AM, TJF <[email protected] <javascript:>> 
> wrote:
>
> When you allocate the array from user space the memory may be not 
> continuous. To get a single block, you have to allocate from kernel space.
>
> This is not a true statement. The kernel uses virtual memory just like 
> user space does. The memory is only contiguous in physical memory if you 
> use kmalloc. If you use vmalloc, the memory can be fragmented in physical 
> memory. 
>
 

Oh, yes. John is right (as always). Here's my corrected statement: 

When you allocate the array from user space the memory may be not 
continuous. To get a single block, you have to allocate from kernel space 
by kmalloc.


Note @John:

A user dealing with real world problems doesn't want to learn about kernel 
driver details. When he can solve a problem by a simple command line like

sudo modprobe uio_pruss extram_pool_sz=0x12500 

he'll prefer that solution.

-- 
For more options, visit http://beagleboard.org/discuss
--- 
You received this message because you are subscribed to the Google Groups 
"BeagleBoard" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/beagleboard/ff1e0d76-008f-42bd-a516-adc1a7feff99%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to