lkml.org 
[lkml]   [1996]   [Mar]   [26]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
From
Subjectold_size argument in mremap
Date
Hello all,
reading the kernel implementation of mremap I came across the
old_size argument.
Why is it there? The kernel already knows the size of the vma,
so it seems unnecessary to provide this information as an
additional argument. IMHO

caddr_t mremap (caddr_t addr, size_t new_size, int flags);

would be cleaner. Currently only REMAP_CAN_MOVE (or something like this)
would be a defined value for flags.

Any comments?

--
Best regards
Joerg
--------------------------------------------------------------------------------
Joerg Pommnitz, ARTe Team, IBM Scientific Center Heidelberg, Germany
Mail1: pommnitz@heidelbg.ibm.com
Mail2: jpo@vnet.ibm.com
Tel. : Germany (06221) 59 3609


\
 
 \ /
  Last update: 2005-03-22 13:36    [W:0.024 / U:25.508 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site