mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Pankaj Garg <PGarg@MEGISTO.com>
To: linux-kernel@vger.kernel.org
Subject: ioremap'ing RAM
Date: Wed, 16 Jul 2003 11:59:07 -0400	[thread overview]
Message-ID: <C3F7A1AD0781F84784B5528466CA09DD01345643@megisto-sql1> (raw)

Hi,

This is the first time I am posting to this group. If this question does not
belong to this mailing list please ignore it. I would really appreciate if
any one could point me to the correct list.

I am trying to allocate a huge chunk of memory for my module. The memory is
needed to be contiguous in physical address space and is much more than what
kmalloc returns. I reserved some high memory at the bootup time of the
kernel (using the command line option mem), and at the time of module
initialization used ioremap to grab that chunk of memory. All this is
working fine.

My module creates a table in this allocated address space. The table is not
going out of bound.

The module sniff's the packet coming in through the network card and does a
find on the table.

The problem is, if I load the module just after startup (within a second or
two), the kernel crashes. If I do it a little later, say 2-3 mins later, it
crashes after 1-2 days. 

Is there anything wrong in the way I am doing memory allocation?

Regards,
Pankaj


             reply	other threads:[~2003-07-16 15:53 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2003-07-16 15:59 Pankaj Garg [this message]
2003-07-17  9:15 ` Jörn Engel

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=C3F7A1AD0781F84784B5528466CA09DD01345643@megisto-sql1 \
    --to=pgarg@megisto.com \
    --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

all inboxes | Powered by JetHome®