NTFS_RL_REALLOC

Section: ()
Updated: 06 October 2005
Index Return to Main Contents

 

NAME

ntfs_rl_realloc - Reallocate memory for run_lists  

SYNOPSIS

"SYNOPSIS"

run_list_element * ntfs_rl_realloc (run_list_element * rl, int old_size, int new_size);  

ARGUMENTS

rl
original run list
old_size
number of run list elements in the original run list rl
new_size
number of run list elements we need space for
 

DESCRIPTION

As the run_lists grow, more memory will be required. To prevent the kernel having to allocate and reallocate large numbers of small bits of memory, this function returns and entire page of memory.

It is up to the caller to serialize access to the run list rl.

N.B. If the new allocation doesn't require a different number of pages in memory, the function will return the original pointer.

On success, return a pointer to the newly allocated, or recycled, memory. On error, return -errno. The following error codes are defined: -ENOMEM - Not enough memory to allocate run list array. -EINVAL - Invalid parameters were passed in.


 

Index

NAME
SYNOPSIS
ARGUMENTS
DESCRIPTION

This document was created by man2html, using the manual pages.
Time: 05:30:48 GMT, October 06, 2005