The Continuous Memory Allocation is larger 128kB for DMA process?

This is a discussion on The Continuous Memory Allocation is larger 128kB for DMA process? within the C Programming forums, part of the General Programming Boards category; Hi, I want to allocate the continuous memory larger 128k for DMA process. But i can't used kmalloc() function for ...

  1. #1
    Registered User
    Join Date
    Jun 2010
    Posts
    3

    Question The Continuous Memory Allocation is larger 128kB for DMA process?

    Hi,
    I want to allocate the continuous memory larger 128k for DMA process.
    But i can't used kmalloc() function for allocate the memory larger 128KB.
    Please, hepl me allocate the continuous memory larger 128k for DMA process.

    Thanks,

  2. #2
    Registered User
    Join Date
    Sep 2006
    Posts
    8,868
    What compiler and operating system are you using? How much memory do you have in total? How much is free before you try to malloc() this amount?

    What is kmalloc() ? I'm only familiar with malloc() and calloc().

  3. #3
    Registered User
    Join Date
    May 2010
    Location
    Naypyidaw
    Posts
    1,314
    @ adak,kmalloc

  4. #4
    Registered User
    Join Date
    May 2010
    Location
    Naypyidaw
    Posts
    1,314
    If your code is to be completely portable, it cannot count on being able to allocate anything larger than 128 KB. If you need more than a few kilobytes, however, there are better ways than kmalloc to obtain memory, which we describe later in this chapter.
    You might want to read up
    From here.

  5. #5
    Registered User
    Join Date
    Sep 2006
    Posts
    8,868
    Thanks, Bayint! I'm a total noob with Linux.

  6. #6
    Registered User
    Join Date
    Jun 2010
    Posts
    3
    Quote Originally Posted by Bayint Naung View Post
    You might want to read up
    From here.
    Thanks, but I known kmalloc() function only allocate maximum is 128kB, so i want to know the solution for allocating the continuous memory larger 128k for DMA process.
    Please, hepl me!

  7. #7

  8. #8
    Registered User
    Join Date
    Jun 2010
    Posts
    3
    Thanks for sharing, really!

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Mutex and Shared Memory Segment Questions.
    By MadDog in forum Linux Programming
    Replies: 14
    Last Post: 06-20-2010, 05:04 AM
  2. Help with insert/delete binary search tree
    By Nazgulled in forum C Programming
    Replies: 39
    Last Post: 03-25-2009, 05:24 PM
  3. Problems with shared memory shmdt() shmctl()
    By Jcarroll in forum C Programming
    Replies: 1
    Last Post: 03-17-2009, 11:48 PM
  4. Assignment Operator, Memory and Scope
    By SevenThunders in forum C++ Programming
    Replies: 47
    Last Post: 03-31-2008, 07:22 AM
  5. Memory allocation and deallocation
    By Micko in forum C++ Programming
    Replies: 3
    Last Post: 08-19-2005, 07:45 PM

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21