Messages in this thread | | | Subject | Re: __get_free_pages() | Date | Thu, 28 May 1998 13:57:43 +0200 (MET DST) | From | (Rogier Wolff) |
| |
Dr. Werner Fink wrote: > > On Wed, May 27, 1998 at 06:11:10PM -0400, James Mastros wrote: > > On Wed, 27 May 1998, Andrej Presern wrote: > > > Can someone please explain what individual GFP_* bitmasks mean (in > > > include/linux/mm.h and as used in __get_free_pages())? Also, what is the > > > 'order' argument that __get_free_pages() takes? > > > > __GFP_WAIT: If memory isn't avaible, sleep untill it is > > __GFP_IO: We are allowed to do IO (eg swap). > > __GFP_{LOW|MED|HI}: Relative necessity. > > __GFP_DMA: Only allocate memory that we can DMA into (ie <16 MB on Intel > > boxes)
Talking about which, I'd say this GFP_DMA flag should be split into GFP_DMA_1M GFP_DMA_16M GFP_DMA_4G
(With a compatibility alias, : GFP_DMA is the same as GFP_DMA_16M).
Roger.
-- If it's there and you can see it, it's REAL |___R.E.Wolff@BitWizard.nl | If it's there and you can't see it, it's TRANSPARENT | Tel: +31-15-2137555 | If it's not there and you can see it, it's VIRTUAL |__FAX:_+31-15-2138217 | If it's not there and you can't see it, it's GONE! -- Roy Wilks, 1983 |_____|
- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.rutgers.edu
| |