lkml.org 
[lkml]   [1998]   [Sep]   [29]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
From sroy@wipinfo ...
SubjectMemory allocation of 132 KB
DateTue, 29 Sep 1998 10:31:57 -0400 (EDT)
Hi,

In a network driver, I tried to allocate memory for DMA buffer of length
132 KB and the call (kmalloc()) failed. Hacking through kmalloc.c, I found
that it does not allow allocating memory more than (128K - 24) bytes, if the
page size is 4KB.

Me questions are -

1. Why is that limitation ?
2. Is there any way to allocate 132 KB memory (physically contiguous) ?

My system has 32 MB memory.

Any help is appreciated.

Thanx in advance,
- Somnath.

/~~~|~~~~|~~~~|~~~~|~~~~|~~~~|~~~~|~~~~|~~~~|~~~~|~~~~~/~~~|~\
|____|____|____|____|____|____|____|____|____|____|____/ |) \
| Somnath Roy, Wipro Ltd., E-ml:sroy@wipinfo.soft.net /_____|___\
/DivyaSree,30,Mission Rd.,Bl-27, Ph-2241730 (Ext-3305)///////| |
| |///////| |
| Journey of thousand miles begins with a single step |///////| |
~~~/~~~\~/~~~\~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~/~~~\~~~~
\___/ \___/ \___/

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.rutgers.edu
Please read the FAQ at http://www.tux.org/lkml/

\
 
 \ /
  Last update: 2005-03-22 13:44    [from the cache]
©2003-2010