Linux MIPS Architecture development
 help / color / mirror / Atom feed
From: Denis Oliver Kropp <dok@directfb.org>
To: kaka <share.kt@gmail.com>
Cc: linux-mips@linux-mips.org, uclinux-dev@uclinux.org,
	celinux-dev@tree.celinuxforum.org,
	linux-fbdev-users@lists.sourceforge.net,
	directfb-users@directfb.org, directfb-dev@directfb.org
Subject: Re: [directfb-dev] Usage of mmap command
Date: Tue, 20 Nov 2007 09:29:35 +0100	[thread overview]
Message-ID: <47429AEF.3010403@directfb.org> (raw)
In-Reply-To: <eea8a9c90711192239q6009cbb8y76790fa73bc4a5b7@mail.gmail.com>

kaka wrote:
> Hi All,
> 
> void *mmap(void *start, size_t length, int prot, int flags,           int
> fd, off_t offset);
> 
> I am providing 16,00,000 as length parameter in mmap command.
> It is giving me error as Can't mmap region. on the other hand when i am
> providing 9,00,000 as length parameter in mmap command.
> It is successful.
> This mmap command is being issued from User space.
> 
> On the other hand in the framebuffer driver in the kernel spce i have
> specified the length of mmio in the ioremap as 16,00,000.

The ioremap() is independent of the values propagated to user space
and fbmem.c via fix.mmio_start and fix.mmio_len, please check these.

-- 
Best regards,
  Denis Oliver Kropp

.------------------------------------------.
| DirectFB - Hardware accelerated graphics |
| http://www.directfb.org/                 |
"------------------------------------------"

  reply	other threads:[~2007-11-20  8:33 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-11-20  6:39 Usage of mmap command kaka
2007-11-20  8:29 ` Denis Oliver Kropp [this message]
2007-11-20  9:40   ` kaka
2007-11-20 10:42     ` Denis Oliver Kropp

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=47429AEF.3010403@directfb.org \
    --to=dok@directfb.org \
    --cc=celinux-dev@tree.celinuxforum.org \
    --cc=directfb-dev@directfb.org \
    --cc=directfb-users@directfb.org \
    --cc=linux-fbdev-users@lists.sourceforge.net \
    --cc=linux-mips@linux-mips.org \
    --cc=share.kt@gmail.com \
    --cc=uclinux-dev@uclinux.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