Print this page
11972 resync smatch
   1 #ifndef ALLOCATE_H
   2 #define ALLOCATE_H
   3 


   4 struct allocation_blob {
   5         struct allocation_blob *next;
   6         unsigned int left, offset;
   7         unsigned char data[];
   8 };
   9 
  10 struct allocator_struct {
  11         const char *name;
  12         struct allocation_blob *blobs;
  13         unsigned int alignment;
  14         unsigned int chunking;
  15         void *freelist;
  16         /* statistics */
  17         unsigned long allocations, total_bytes, useful_bytes;
  18 };
  19 
  20 struct allocator_stats {
  21         const char *name;
  22         unsigned int allocations;
  23         unsigned long total_bytes, useful_bytes;


   1 #ifndef ALLOCATE_H
   2 #define ALLOCATE_H
   3 
   4 #include "compat.h"
   5 
   6 struct allocation_blob {
   7         struct allocation_blob *next;
   8         unsigned int left, offset;
   9         unsigned char data[];
  10 };
  11 
  12 struct allocator_struct {
  13         const char *name;
  14         struct allocation_blob *blobs;
  15         unsigned int alignment;
  16         unsigned int chunking;
  17         void *freelist;
  18         /* statistics */
  19         unsigned long allocations, total_bytes, useful_bytes;
  20 };
  21 
  22 struct allocator_stats {
  23         const char *name;
  24         unsigned int allocations;
  25         unsigned long total_bytes, useful_bytes;