Re: mremap() proposal (was Re: malloc and joe)
Snow Cat (snowcat@math.csufresno.edu)
Sun, 24 Mar 1996 09:15:07 -0800 (PST)
Linus Torvalds once wrote:
>
>
> Ok, here is a draft implementation of the "mremap()" system call, Wolfram could
> you test?
>
> Essentially, it adds a new system call (#163 on x86) that looks like
>
> caddr_t mremap(caddr_t addr, size_t old, size_t new, int move);
>
> where the paramaters are as follows:
>
> addr: start of memory area to be remapped
> old: old size of memory area
> new: new size of memory area
> move: boolean "can we move the area"
>
> and it returns either the pointer to the new area or "(caddt_t) -1" if
> the remapping failed with "errno" holding the error number
>
If the mapping grows, what is the content of new pages? Is it always
MAP_ANON or new sections of the same file that was used for mapping?
--
Snow ^oo^ Cat <snowcat@math.CSUFresno.EDU>
_ -> <- aka Oleg Kibirev <oleg@math.CSUFresno.EDU>
___(_) _ _)_
/ _) finger oleg@math.math.CSUFresno.EDU for PGP public key
\_.-._
|___/ Purr!