[okl4-developer] Iguana memsections
Geoffrey Lee
glee at ok-labs.com
Thu Jul 17 00:09:10 EST 2008
On Wed, Jul 16, 2008 at 12:34:19PM +0200, Guillaume PETITJEAN wrote:
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
>
> 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
> -----BEGIN PGP SIGNATURE-----
> Version: GnuPG v1.2.6 (GNU/Linux)
> Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org
>
> iD8DBQFIfc6qjv846okcfKkRAoFUAKCqVuQdEO5DZ5nirVTG02p1gNrqUgCg2Vjv
> K1iG45jwYy7HeIM17isQ92k=
> =F55y
> -----END PGP SIGNATURE-----
>
>
> _______________________________________________
> Developer mailing list
> Developer at okl4.org
> https://lists.okl4.org/mailman/listinfo/developer
>
--
More information about the Developer
mailing list