Museum

Home

Lab Overview

Retrotechnology Articles

Online Manuals

⇒ freestk(2) — Purdue Xinu

Media Vault

Software Library

Restoration Projects

Artifacts Sought

Related Articles

getbuf(2)

getmem(2)

getstk(2)

freebuf(2)

freemem(2)

FREESTK(2)

NAME

freestk − deallocate a block of stack memory

SYNOPSIS

int freestk(addr, len)
char ∗addr;
int len;

DESCRIPTION

Freestk deallocates a contiguous block of memory previously obtained with GETSTK(2), and returns it to the free list.  Argument addr specifies the highest integer address in the block being deallocated, and argument len specifies the length of the block in bytes.  In this version, memory is allocated in  multiples of four bytes to guarantee that sufficient space is available in each block to link it onto the free list.  However, both getstk and freestk rounds the specified length automatically, so the user need not be aware of any extra space in the allocated blocks. 

SEE ALSO

getbuf(2), getmem(2), getstk(2), freebuf(2), freemem(2)

December 01, 1986  —  Xinu Programmer’s Manual

Typewritten Software • bear@typewritten.org • Edmonds, WA 98026