linux-mm.kvack.org archive mirror
 help / color / mirror / Atom feed
* Re: Deleting an element from a free_list?
@ 2000-06-27 18:55 frankeh
  2000-06-27 18:57 ` Timur Tabi
  0 siblings, 1 reply; 3+ messages in thread
From: frankeh @ 2000-06-27 18:55 UTC (permalink / raw)
  To: Linux MM mailing list

NO, it will NOT prevent the kernel of allocating these blocks. They have to
be properly marked in the
bitmaps of the buddy algorithm...
You basically have to do what alloc_pages() does !!
If you know the addresses upfront at boottime ... you might screw around
with the reserve_bootmem or the
BIOS E820 bootmem map.....  (assuming you are sitting on an x86 box).

-- Hubertus

Timur Tabi <ttabi@interactivesi.com>@kvack.org on 06/27/2000 02:46:43 PM

Sent by:  owner-linux-mm@kvack.org


To:   Linux MM mailing list <linux-mm@kvack.org>
cc:
Subject:  Deleting an element from a free_list?



free_area[x].free_list.next points to the head of a linked list of free
blocks
of order x (2^x contiguous pages).  If I simply remove one element from one
of
these linked lists, using function list_del() in list.h, does that
effectively
remove that block from the free list and hence prevent the kernel from
allocating those blocks of memory to anyone else?  This is assuming that I
never
ever plan to "unallocate" those blocks of memory.  Will I need to also
update
the corresponding mem_map_t structures by doing something like setting the
usage
count to 1 or setting some bits in the flags field?



--
Timur Tabi - ttabi@interactivesi.com
Interactive Silicon - http://www.interactivesi.com

When replying to a mailing-list message, please don't cc: me, because then
I'll just get two copies of the same message.
--
To unsubscribe, send a message with 'unsubscribe linux-mm' in
the body to majordomo@kvack.org.  For more info on Linux MM,
see: http://www.linux.eu.org/Linux-MM/



--
To unsubscribe, send a message with 'unsubscribe linux-mm' in
the body to majordomo@kvack.org.  For more info on Linux MM,
see: http://www.linux.eu.org/Linux-MM/

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: Deleting an element from a free_list?
  2000-06-27 18:55 Deleting an element from a free_list? frankeh
@ 2000-06-27 18:57 ` Timur Tabi
  0 siblings, 0 replies; 3+ messages in thread
From: Timur Tabi @ 2000-06-27 18:57 UTC (permalink / raw)
  To: Linux MM mailing list

** Reply to message from frankeh@us.ibm.com on Tue, 27 Jun 2000 14:55:15 -0400


> NO, it will NOT prevent the kernel of allocating these blocks. They have to
> be properly marked in the
> bitmaps of the buddy algorithm...

Damn, I knew I was forgetting something.

> You basically have to do what alloc_pages() does !!

*sigh* back to the source ...




--
Timur Tabi - ttabi@interactivesi.com
Interactive Silicon - http://www.interactivesi.com

When replying to a mailing-list message, please don't cc: me, because then I'll just get two copies of the same message.
--
To unsubscribe, send a message with 'unsubscribe linux-mm' in
the body to majordomo@kvack.org.  For more info on Linux MM,
see: http://www.linux.eu.org/Linux-MM/

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Deleting an element from a free_list?
@ 2000-06-27 18:46 Timur Tabi
  0 siblings, 0 replies; 3+ messages in thread
From: Timur Tabi @ 2000-06-27 18:46 UTC (permalink / raw)
  To: Linux MM mailing list

free_area[x].free_list.next points to the head of a linked list of free blocks
of order x (2^x contiguous pages).  If I simply remove one element from one of
these linked lists, using function list_del() in list.h, does that effectively
remove that block from the free list and hence prevent the kernel from
allocating those blocks of memory to anyone else?  This is assuming that I never
ever plan to "unallocate" those blocks of memory.  Will I need to also update
the corresponding mem_map_t structures by doing something like setting the usage
count to 1 or setting some bits in the flags field?



--
Timur Tabi - ttabi@interactivesi.com
Interactive Silicon - http://www.interactivesi.com

When replying to a mailing-list message, please don't cc: me, because then I'll just get two copies of the same message.
--
To unsubscribe, send a message with 'unsubscribe linux-mm' in
the body to majordomo@kvack.org.  For more info on Linux MM,
see: http://www.linux.eu.org/Linux-MM/

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2000-06-27 18:57 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2000-06-27 18:55 Deleting an element from a free_list? frankeh
2000-06-27 18:57 ` Timur Tabi
  -- strict thread matches above, loose matches on Subject: below --
2000-06-27 18:46 Timur Tabi

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox