lkml.org 
[lkml]   [2001]   [Jun]   [28]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
From
SubjectRe: Is an outside module supposed to use page cache?
Date
On Thursday 28 June 2001 20:16, Ho Chak Hung wrote:
> Hi,
> I am trying to develop a module that makes use of the page cache(by
> allocating a LOT of pages use page_cache_alloc and then add_to_page_cache).
> However, I got some unresolved symbols error during insmod.(because the
> symbols related to lru_cache_add.... etc are not exported?) . I am just
> wondering if I am not building a file system but at the same time want to
> allocate a lot of pages of physical memory to store something that has no
> backup storage as a file, should I add it to the page cache? Any advice
> would be greatly appreciated

Why not use vmalloc?

If you must, just export the symbols you need, write your code, then either:

a) Explain to Linus why the world needs those symbols exported
b) Refine your approach to do it without those symbols

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

\
 
 \ /
  Last update: 2005-03-22 12:55    [W:0.071 / U:1.244 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site