Rev 2124 | Rev 2745 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 2124 | Rev 2444 | ||
---|---|---|---|
Line 69... | Line 69... | ||
69 | /** We add magazine cache later, if we have this flag */ |
69 | /** We add magazine cache later, if we have this flag */ |
70 | #define SLAB_CACHE_MAGDEFERRED (0x4 | SLAB_CACHE_NOMAGAZINE) |
70 | #define SLAB_CACHE_MAGDEFERRED (0x4 | SLAB_CACHE_NOMAGAZINE) |
71 | 71 | ||
72 | typedef struct { |
72 | typedef struct { |
73 | link_t link; |
73 | link_t link; |
74 | count_t busy; /**< Count of full slots in magazine */ |
74 | count_t busy; /**< Count of full slots in magazine */ |
75 | count_t size; /**< Number of slots in magazine */ |
75 | count_t size; /**< Number of slots in magazine */ |
76 | void *objs[0]; /**< Slots in magazine */ |
76 | void *objs[]; /**< Slots in magazine */ |
77 | } slab_magazine_t; |
77 | } slab_magazine_t; |
78 | 78 | ||
79 | typedef struct { |
79 | typedef struct { |
80 | slab_magazine_t *current; |
80 | slab_magazine_t *current; |
81 | slab_magazine_t *last; |
81 | slab_magazine_t *last; |