Changes in kernel/generic/include/lib/ra.h [02667d9:1295a1da] in mainline
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
kernel/generic/include/lib/ra.h
r02667d9 r1295a1da 71 71 typedef struct { 72 72 link_t segment_link; /**< Span's segment list link. */ 73 74 /* 75 * A segment cannot be both on the free list and in the used hash. 76 * Their respective links can therefore occupy the same space. 77 */ 78 union { 79 link_t fl_link; /**< Span's free list link. */ 80 ht_link_t uh_link; /**< Span's used hash link. */ 81 }; 73 link_t fu_link; /**< Span's free list or used hash link. */ 82 74 83 75 uintptr_t base; /**< Segment base. */ … … 87 79 extern void ra_init(void); 88 80 extern ra_arena_t *ra_arena_create(void); 89 extern void ra_arena_destroy(ra_arena_t *);90 81 extern bool ra_span_add(ra_arena_t *, uintptr_t, size_t); 91 extern bool ra_alloc(ra_arena_t *, size_t, size_t, uintptr_t *);82 extern uintptr_t ra_alloc(ra_arena_t *, size_t, size_t); 92 83 extern void ra_free(ra_arena_t *, uintptr_t, size_t); 93 84
Note:
See TracChangeset
for help on using the changeset viewer.