Sunday, 24 April 2011

Algorithm allocreg

Algorithm  allocreg   /*  allocate  a  region   data  structure */

input :  (1) inode  pointer
(2) region   type
output :  locked  region
{
remove   region  from   linked   list  of   free   regions ;
assign   region  type ;
assign   region  inode  pointer ;
if(inode  pointer   not   null)
                 increment    inode   refernce  count ;
place  region  on  linked   list  of   active  region ;
return (locked   region);
}

No comments: