Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 26 Feb 2001 19:54:39 +0000 (GMT)
From:      "E.B. Dreger" <eddy+public+spam@noc.everquick.net>
To:        freebsd-hackers@freebsd.org
Subject:   mmap() w/ MAP_STACK question
Message-ID:  <Pine.LNX.4.20.0102261942360.1951-100000@www.everquick.net>

next in thread | raw e-mail | index | archive | help
Greetings,

I'm interested in using mmap() with MAP_STACK.  After writing a couple of
test programs and looking at vm_map_insert() and vm_map_stack(), it
appears that vm_map_stack() behaves as if MAP_FIXED were set.

Why is this?  I would like to allocate stack space without having to
search for available blocks.

Is there any harm in modifying vm_map_stack() to search for a free block,
a la vm_map_insert()?  I've not delved extensively into the kernel, and am
asking before I tinker in new territory. :-)


TIA,
Eddy

---------------------------------------------------------------------------

Brotsman & Dreger, Inc.
EverQuick Internet / EternalCommerce Division

E-Mail: eddy@everquick.net
Phone: (316) 794-8922

---------------------------------------------------------------------------


To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-hackers" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?Pine.LNX.4.20.0102261942360.1951-100000>