From: Scott Wood <scottwood@freescale.com>
To: Misbah khan <misbah_khan@engineer.com>
Cc: linuxppc-embedded@ozlabs.org
Subject: Re: Kmalloc returns which address
Date: Fri, 20 Jul 2007 11:58:38 -0500 [thread overview]
Message-ID: <46A0E9BE.4020305@freescale.com> (raw)
In-Reply-To: <11705981.post@talk.nabble.com>
Misbah khan wrote:
> hi Suresh
>
> In linux kmelloc returns the pointer to virtual address not the physical
> address, to return to the physical address there is different function
> called ioremap
>
> for eg :-
> char *buf_tx =kmalloc(100,GFP_KERNEL); // Tx buffer
> char *buf_rx=kmalloc(100,GFP_KERNEL); // Rx buffer
>
> ptr_tx=ioremap( buf_tx,100);
> ptr_rx=ioremap(buf_rx,100);
That's a really easy way to cause a machine check.
-Scott
prev parent reply other threads:[~2007-07-20 16:58 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-07-16 13:59 Kmalloc returns which address suresh suresh
2007-07-16 15:46 ` Scott Wood
2007-07-23 3:47 ` Misbah khan
2007-07-23 18:35 ` Scott Wood
2007-07-24 7:03 ` Misbah khan
2007-07-20 10:52 ` Misbah khan
2007-07-20 12:13 ` Alessandro Rubini
2007-07-20 16:58 ` Scott Wood [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=46A0E9BE.4020305@freescale.com \
--to=scottwood@freescale.com \
--cc=linuxppc-embedded@ozlabs.org \
--cc=misbah_khan@engineer.com \
/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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.