Saturday, 23 April 2011

Algorithm for allocating a Region

Algorithm   for   allocating   a   Region

algorithm   allocreg  /*   allocate    a   region   data   structure  */
input  : (1) inode   pointer
(2)  region   type
output : (1) locked   region
{
remove   region   from   linked   list   of   free   region ;
assign   region   type ;
assign   region   indoe  pointer ;
if (inode   pointer   not  null)
increment   inode   reference   count ;
place  region   on  linked   list   of  active  regions ;
return(locked  region);
}

No comments: