Usage of mmap command

kaka <[email protected]> Tue, 20 Nov 2007 12:09:26 +0530
Newsgroups gmane.linux.fbdev.user,gmane.linux.uclinux.devel,gmane.comp.graphics.directfb.user,gmane.comp.graphics.directfb.devel
Message-ID <[email protected]>
--===============1784777845==
Content-Type: multipart/alternative; 
	boundary="----=_Part_21593_1843271.1195540766162"

------=_Part_21593_1843271.1195540766162
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: 7bit
Content-Disposition: inline

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

------=_Part_21593_1843271.1195540766162
Content-Type: text/html; charset=ISO-8859-1
Content-Transfer-Encoding: 7bit
Content-Disposition: inline

<div>Hi All,</div>
<div>&nbsp;</div>
<div>void *mmap(void *start, size_t length, int prot, int flags,&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; int<br>fd, off_t offset);<br>&nbsp;</div>
<div>I am providing 16,00,000 as length parameter in mmap command.</div>
<div>It is giving me error as Can&#39;t mmap region. on the other hand when i am providing 9,00,000 as length parameter in mmap command.</div>
<div>It is successful.<br clear="all">This mmap command is being issued from User space.</div>
<div>&nbsp;</div>
<div>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.</div>
<div>&nbsp;</div>
<div>Can anybody provide any clue on it?</div>
<div>I want to access the mmio regs at offset (&nbsp;0 to&nbsp; 16,00,000).</div>
<div><br>-- <br>Thanks &amp; Regards,<br>kaka </div>

------=_Part_21593_1843271.1195540766162--


--===============1784777845==
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: inline

-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2005.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
--===============1784777845==
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: inline

_______________________________________________
Linux-fbdev-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/linux-fbdev-users

--===============1784777845==--