linux-mips
[Top] [All Lists]

Usage of mmap command

To: linux-mips@linux-mips.org, uclinux-dev@uclinux.org, celinux-dev@tree.celinuxforum.org, linux-fbdev-users@lists.sourceforge.net
Subject: Usage of mmap command
From: kaka <share.kt@gmail.com>
Date: Tue, 20 Nov 2007 12:09:26 +0530
Cc: directfb-users@directfb.org, directfb-dev@directfb.org
Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=beta; h=domainkey-signature:received:received:message-id:date:from:to:subject:cc:mime-version:content-type; bh=ykgqxqYmkYOAssyTf1g4BM2JoF4kjk9+u4w/BC2YaQM=; b=jbJ7LFyD6EfkLPSWbfSm5Ph8EAvCrgv4gUw6uvGqlscp+/AdjCVbJFSDLYvvp1equ1DEwqQSf7/O2gCxglU/A9c77lVu/o1VUUbyRhytt825ZNdQOvptmOs9jRjMalaYKUhPwKY4fbTrSywTWtDe1qIs57YAjUMG4hnnYiUSBoo=
Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=received:message-id:date:from:to:subject:cc:mime-version:content-type; b=BMCvFSKscZ7GaksxRcnLUhu9CxVVLABOHm3ZmVYXnK1xTiRypjiSPrcB/+7qIFwC6Kp9k+KeCVX7msvSEYLwkyLBtVZ3ucXq2su+ph8K6nMl+qA4zTenZejkieTG7OIISiQxeYAwRCSi3fTakgaIEt1HzA89NzXavswgNjQYovc=
Original-recipient: rfc822;linux-mips@linux-mips.org
Sender: linux-mips-bounce@linux-mips.org
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.
 
Can anybody provide any clue on it?
I want to access the mmio regs at offset ( 0 to  16,00,000).

--
Thanks & Regards,
kaka
<Prev in Thread] Current Thread [Next in Thread>