Confusing Terms
From: gopan (gop_kumar_at_hotmail.com)
Date: 12/23/04
- Next message: Kasper Dupont: "Re: make my own floppy distribution......"
- Previous message: bluekarthik_at_yahoo.com: "Re: pice and softice !!"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: 22 Dec 2004 23:00:31 -0800
>1)kmalloc and Vmalloc
>2)Vmalloc and ioremap
kmalloc is normally used when you want contiguous memory of small
size (even thou you can ask for memory sizes up to 131072 bytes). The
allocation sizes can be 32, 64, ... 131072, and if the allocation is
successful you can be sure that the allocated memory is contiguous
physically.
vmalloc is used if you want large amount of memory contiguous
virtually but not physically.
ioremap is typically used to access memory mapped devices, ie we know
the physical address where they are mapped and want to create a
mapping for them in the page tables and get a virtual address so as to
access them.
- Next message: Kasper Dupont: "Re: make my own floppy distribution......"
- Previous message: bluekarthik_at_yahoo.com: "Re: pice and softice !!"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|