Rev 3425 | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 3425 | Rev 4377 | ||
---|---|---|---|
Line 44... | Line 44... | ||
44 | #include <debug.h> |
44 | #include <debug.h> |
45 | #include <print.h> |
45 | #include <print.h> |
46 | #include <macros.h> |
46 | #include <macros.h> |
47 | 47 | ||
48 | /** Return size needed for the buddy configuration data. */ |
48 | /** Return size needed for the buddy configuration data. */ |
49 | size_t buddy_conf_size(int max_order) |
49 | size_t buddy_conf_size(size_t max_order) |
50 | { |
50 | { |
51 | return sizeof(buddy_system_t) + (max_order + 1) * sizeof(link_t); |
51 | return sizeof(buddy_system_t) + (max_order + 1) * sizeof(link_t); |
52 | } |
52 | } |
53 | 53 | ||
54 | 54 |