[okl4-developer] Iguana memsections

Guillaume PETITJEAN guillaume.petitjean at st.com
Thu Jul 17 00:21:52 EST 2008


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

OK thanks.
And what about memsection_create_dma() ?
In fact I need to allocate an area that is uncacheable and this is the
only function where I can give some attributes like this.


Geoffrey Lee wrote:
> On Wed, Jul 16, 2008 at 12:34:19PM +0200, Guillaume PETITJEAN
> wrote: My understanding is that, in order to access a memsection, I
> need to call the following funtions: 1) memsection_create() 2)
> memsection_map(memsection_ref_t memsect, uintptr_t offset,
> physmem_ref_t phys)
>
> For 2) i don't understand why I should provide the phys addr. The
> application should not be manipulating phys addr right ?
>
>> Hi Guillaume
>
>> memsection_create() will create a memesection which backs it with
>> physical memory.  You can can also create a memsection that be
>> manually mapped with memsection_create_user().  The
>> memsection_map() API is supposed to allow you to map memory into
>> user-mapped memory sections.  The physmem reference can be
>> created with physpool_alloc(), and information can be obtained
>> from the physpool with physmem_info().
> libs/iguana/test/memsect_tests.c
>> contain some tests which contain some examples on how to use this
>> API.
>
>
>
>> -gl
>
> Could you explain the exact behaviour of these functions and how I
> should compute the phys addr ?
>
> Guillaume
>>
>>
_______________________________________________
Developer mailing list
Developer at okl4.org
https://lists.okl4.org/mailman/listinfo/developer
>>

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.6 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFIfgQAjv846okcfKkRAmP+AKCB7JIKZysmh+C5k6OTgiKWeYKRBwCgr9ln
Vh9nQCr7FOEnrHE/J1DoLsA=
=gCR+
-----END PGP SIGNATURE-----




More information about the Developer mailing list