X-Git-Url: https://scm.lunaixsky.com/lunaix-os.git/blobdiff_plain/a4ec38a4c7ef61b04b92d34637c846a8e2e95f7f..270869139db617e29a35bb9ded41087bb702f9ac:/lunaix-os/kernel/mm/cake_export.c?ds=sidebyside diff --git a/lunaix-os/kernel/mm/cake_export.c b/lunaix-os/kernel/mm/cake_export.c index 276e823..377a9ad 100644 --- a/lunaix-os/kernel/mm/cake_export.c +++ b/lunaix-os/kernel/mm/cake_export.c @@ -17,7 +17,8 @@ __cake_stat_gonext(struct twimap* map) void __cake_stat_reset(struct twimap* map) { - map->index = container_of(piles.next, struct cake_pile, piles); + map->index = container_of(&piles, struct cake_pile, piles); + twimap_printf(map, "name, n_cakes, pg/cake, slices/cake, n_slices\n"); } void @@ -98,11 +99,11 @@ cake_export() map->reset = __cake_stat_reset; map->go_next = __cake_stat_gonext; map->read = __cake_rd_stat; - __cake_stat_reset(map); struct cake_pile *pos, *n; llist_for_each(pos, n, &piles, piles) { cake_export_pile(cake_root, pos); } -} \ No newline at end of file +} +EXPORT_TWIFS_PLUGIN(cake_alloc, cake_export); \ No newline at end of file