|
Re: lug-bg: Shared memory
- Subject: Re: lug-bg: Shared memory
- From: rsd@xxxxxxxxxxxxx (Dimo Dimitrov)
- Date: Sat, 29 Jul 2000 02:49:42 +1000
Hi,
int np; // = <numeber of pages>
void *buf;
buf = (void *) __get_free_pages(GFP_KERNEL | (dma ? GFP_DMA : 0), pg);
if (buf) {
int page, last_page;
page = MAP_NR(buf);
last_page = page + (1 << pg);
while (page < last_page)
set_bit(PG_reserved, &mem_map[page++].flags);
}
Dimo Dimitrov
____________________________
Research & Development Director
EQUINOX Ltd
Phone: +961 3 408 218
Fax: +961 5 459 369
Email: rsd@xxxxxxxxxxxxx
____________________________
==================================================================
A mail-list of Linux Users Group - Bulgaria (bulgarian linuxers)
Otpiswaneto RABOTI !!! : Majordomo@xxxxxxxxxxxxxxxxxx UNSUBSCRIBE LUG-BG
http://www.linux-bulgaria.org/ Hosted by Internet Group Ltd. - Stara Zagora
|
|
|