Fork us on GitHub Follow us on Facebook Follow us on Twitter

Changeset bbfdf62 in mainline


Ignore:
Timestamp:
2010-07-02T19:58:34Z (12 years ago)
Author:
Martin Decky <martin@…>
Branches:
lfn, master, serial
Children:
ca8f84f
Parents:
7a0359b
Message:

size_t as a return type of zone_conf_size() is more natural than uintptr_t

Location:
kernel/generic
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • kernel/generic/include/mm/frame.h

    r7a0359b rbbfdf62  
    167167extern void frame_set_parent(pfn_t, void *, size_t);
    168168extern void frame_mark_unavailable(pfn_t, size_t);
    169 extern uintptr_t zone_conf_size(size_t);
     169extern size_t zone_conf_size(size_t);
    170170extern bool zone_merge(size_t, size_t);
    171171extern void zone_merge_all(void);
  • kernel/generic/src/mm/frame.c

    r7a0359b rbbfdf62  
    828828 *
    829829 */
    830 uintptr_t zone_conf_size(size_t count)
     830size_t zone_conf_size(size_t count)
    831831{
    832832        return (count * sizeof(frame_t) + buddy_conf_size(fnzb(count)));
Note: See TracChangeset for help on using the changeset viewer.