Linux-Bulgaria.ORG
навигация

 

начало

пощенски списък

архив на групата

семинари ...

документи

как да ...

 

 

Предишно писмо Следващо писмо Предишно по тема Следващо по тема По Дата По тема (thread)

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



 

наши приятели

 

линукс за българи
http://linux-bg.org

FSA-BG
http://fsa-bg.org

OpenFest
http://openfest.org

FreeBSD BG
http://bg-freebsd.org

KDE-BG
http://kde.fsa-bg.org/

Gnome-BG
http://gnome.cult.bg/

проект OpenFMI
http://openfmi.net

NetField Forum
http://netField.ludost.net/forum/

 

 

Linux-Bulgaria.ORG

Mailing list messages are © Copyright their authors.