Changes in kernel/generic/include/lib/ra.h [1295a1da:02667d9] in mainline
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
kernel/generic/include/lib/ra.h
r1295a1da r02667d9 71 71 typedef struct { 72 72 link_t segment_link; /**< Span's segment list link. */ 73 link_t fu_link; /**< Span's free list or used hash 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 }; 74 82 75 83 uintptr_t base; /**< Segment base. */ … … 79 87 extern void ra_init(void); 80 88 extern ra_arena_t *ra_arena_create(void); 89 extern void ra_arena_destroy(ra_arena_t *); 81 90 extern bool ra_span_add(ra_arena_t *, uintptr_t, size_t); 82 extern uintptr_t ra_alloc(ra_arena_t *, size_t, size_t);91 extern bool ra_alloc(ra_arena_t *, size_t, size_t, uintptr_t *); 83 92 extern void ra_free(ra_arena_t *, uintptr_t, size_t); 84 93
Note:
See TracChangeset
for help on using the changeset viewer.