public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* Is an outside module supposed to use page cache?
@ 2001-06-28 18:16 Ho Chak Hung
  2001-06-28 23:07 ` Daniel Phillips
  0 siblings, 1 reply; 2+ messages in thread
From: Ho Chak Hung @ 2001-06-28 18:16 UTC (permalink / raw)
  To: linux-kernel

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
Thanks 
__________________________________________________________________
Get your own FREE, personal Netscape Webmail account today at http://webmail.netscape.com/

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: Is an outside module supposed to use page cache?
  2001-06-28 18:16 Is an outside module supposed to use page cache? Ho Chak Hung
@ 2001-06-28 23:07 ` Daniel Phillips
  0 siblings, 0 replies; 2+ messages in thread
From: Daniel Phillips @ 2001-06-28 23:07 UTC (permalink / raw)
  To: Ho Chak Hung, linux-kernel

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

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2001-06-28 23:05 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2001-06-28 18:16 Is an outside module supposed to use page cache? Ho Chak Hung
2001-06-28 23:07 ` Daniel Phillips

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox