.\" This manpage has been automatically generated by docbook2man .\" from a DocBook document. This tool can be found at: .\" .\" Please send any bug reports, improvements, comments, patches, .\" etc. to Steve Cheng . .TH "NTFS_RL_REALLOC" "" "06 October 2005" "" "" .SH NAME ntfs_rl_realloc \- Reallocate memory for run_lists .SH SYNOPSIS "SYNOPSIS" .sp \fB .sp run_list_element * ntfs_rl_realloc (run_list_element * \fIrl\fB, int \fIold_size\fB, int \fInew_size\fB); \fR .SH "ARGUMENTS" .TP \fB\fIrl\fB\fR original run list .TP \fB\fIold_size\fB\fR number of run list elements in the original run list \fIrl\fR .TP \fB\fInew_size\fB\fR number of run list elements we need space for .SH "DESCRIPTION" .PP 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. .PP It is up to the caller to serialize access to the run list \fIrl\fR\&. .PP N.B. If the new allocation doesn't require a different number of pages in memory, the function will return the original pointer. .PP 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.