public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
From: Daniel Phillips <phillips@bonn-fries.net>
To: hunghochak@netscape.net (Ho Chak Hung), linux-kernel@vger.kernel.org
Subject: Re: Is an outside module supposed to use page cache?
Date: Fri, 29 Jun 2001 01:07:41 +0200	[thread overview]
Message-ID: <0106290107410B.00419@starship> (raw)
In-Reply-To: <1EA7E4FA.3574845C.0F76C228@netscape.net>
In-Reply-To: <1EA7E4FA.3574845C.0F76C228@netscape.net>

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

      reply	other threads:[~2001-06-28 23:05 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
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 message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=0106290107410B.00419@starship \
    --to=phillips@bonn-fries.net \
    --cc=hunghochak@netscape.net \
    --cc=linux-kernel@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox