linux-mm.kvack.org archive mirror
 help / color / mirror / Atom feed
From: Viral Mehta <viral.mehta@einfochips.com>
To: linux-mm@kvack.org
Subject: kmap problem
Date: Sat, 21 Feb 2009 09:58:48 +0530	[thread overview]
Message-ID: <499F8300.1020300@einfochips.com> (raw)

Hi All,
I am writing a kernel module. And I am facing a problem relate to Kmap.

I am retriving Kernel Virtual Address for a specific Page using kmap() 
and then after some time I am doing kunmap().
Now, I know that kmap can give A LIMITED NUMBER OF MAPPINGS and so such 
mapping should NOT be held longer. But in my case it is absolutely 
necessary to hold more than 1024 such mappings.

The same code is NOT working on 2.6.10 kernel and IS WORKING on 2.6.18 
kernel. The system is same and there are two kernels that I am playing 
with.

My only question is what is so changed in 2.6.18 kernel from 2.6.10 that 
the same code is working and evidently kmap can hold more than 1024 
virtual address mappings.

The other thing I would like to know if there is ANY generic way to 
handle this situation in 2.6.10 kernel.

Thanks,
Viral
-- 
_____________________________________________________________________
Disclaimer: This e-mail message and all attachments transmitted with it
are intended solely for the use of the addressee and may contain legally
privileged and confidential information. If the reader of this message
is not the intended recipient, or an employee or agent responsible for
delivering this message to the intended recipient, you are hereby
notified that any dissemination, distribution, copying, or other use of
this message or its attachments is strictly prohibited. If you have
received this message in error, please notify the sender immediately by
replying to this message and please delete it from your computer. Any
views expressed in this message are those of the individual sender
unless otherwise stated.Company has taken enough precautions to prevent
the spread of viruses. However the company accepts no liability for any
damage caused by any virus transmitted by this email.
__________________________________________________________________________
 

--
To unsubscribe, send a message with 'unsubscribe linux-mm' in
the body to majordomo@kvack.org.  For more info on Linux MM,
see: http://www.linux-mm.org/ .
Don't email: <a href=mailto:"dont@kvack.org"> email@kvack.org </a>

                 reply	other threads:[~2009-02-21  4:36 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

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=499F8300.1020300@einfochips.com \
    --to=viral.mehta@einfochips.com \
    --cc=linux-mm@kvack.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