delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1997/04/22/00:55:33

From: "Charles Sandmann" <sandmann AT clio DOT rice DOT edu>
Newsgroups: comp.os.msdos.djgpp
Subject: Re: Some dpmi questions ?
Date: Mon, 21 Apr 1997 22:37:34
Organization: Aspen Technology, Inc.
Message-ID: <335bec2e.sandmann@clio.rice.edu>
References: <Pine DOT SUN DOT 3 DOT 91 DOT 970421094358 DOT 2725A-100000 AT is>
Reply-To: sandmann AT clio DOT rice DOT edu
NNTP-Posting-Host: spica.dmccorp.com
Lines: 11
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp

> > What is the field 'handle' in _dpmi_meminfostructure
> It's needed to handle the memory which is sbrk'ed from the DPMI host.
> You will need to ask Charles for the details.

sbrk()'ed memory is allocated in 64K or larger pieces from the DPMI host
using the 0x501 dpmi call.  These memory allocations may be non-continous.
The "handle" field is the one returned by the DPMI host.  The only time
this information is really useful is with a DPMI 1.0 feature supporting
host (like 386MAX or CWSDPMI) so you can set page protections/commitment,
or other interesting things.  It's also used in the final cleanup step to
release the memory.

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019