allocb()

allocb()

概要

引数

  • size

実装

   54: Block*
   55: allocb(int size)
   56: {
   57:         Block *b;
   58: 
   59:         /*
   60:          * Check in a process and wait until successful.
   61:          * Can still error out of here, though.
   62:          */
   63:         if(up == nil)
   64:                 panic("allocb without up: %luX\n", getcallerpc(&size));
   65:         if((b = _allocb(size)) == nil){
  • 詳細は_allocb()?を参照
  • 詳細はxsummary()?を参照
  • 詳細はmallocsummary()?を参照
   66:                 xsummary();
   67:                 mallocsummary();
   68:                 panic("allocb: no memory for %d bytes\n", size);
   69:         }
   70:         setmalloctag(b, getcallerpc(&size));
   71: 
   72:         return b;
   73: }