NTFS_RL_INSERT

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

 

NAME

ntfs_rl_insert - insert a runlist into another  

SYNOPSIS

"SYNOPSIS"

runlist_element * ntfs_rl_insert (runlist_element * dst, int dsize, runlist_element * src, int ssize, int loc);  

ARGUMENTS

dst
original runlist to be worked on
dsize
number of elements in dst (including end marker)
src
new runlist to be inserted
ssize
number of elements in src (excluding end marker)
loc
insert the new runlist src before this element in dst
 

DESCRIPTION

Insert the runlist src before element loc in the runlist dst. Merge the left end of the new runlist, if necessary. Adjust the size of the hole after the inserted runlist.

It is up to the caller to serialize access to the runlists dst and src.

On success, return a pointer to the new, combined, runlist. Note, both runlists dst and src are deallocated before returning so you cannot use the pointers for anything any more. (Strictly speaking the returned runlist may be the same as dst but this is irrelevant.)

On error, return -errno. Both runlists are left unmodified. The following  

ERROR CODES ARE DEFINED

-ENOMEM - Not enough memory to allocate runlist array. -EINVAL - Invalid parameters were passed in.


 

Index

NAME
SYNOPSIS
ARGUMENTS
DESCRIPTION
ERROR CODES ARE DEFINED

This document was created by man2html, using the manual pages.
Time: 00:02:34 GMT, October 09, 2005