Changeset bb68433 in mainline for doc/mm


Ignore:
Timestamp:
2006-02-08T22:58:06Z (19 years ago)
Author:
Ondrej Palkovsky <ondrap@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
7e4e532
Parents:
85dc2e7
Message:

Changed malloc to include second parameter and documented
recommended usage.
Added zone merging, made ia32 & amd64 to merge found zones.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • doc/mm

    r85dc2e7 rbb68433  
    6666There is only one global page hash table in the system shared by all address
    6767spaces.
     68
     692.1 General allocator
     70
     71'malloc' function accepts flags as a second argument. The flags are directly
     72passed to the underlying frame_alloc function.
     73
     741) If the flags parameter contains FRAME_ATOMIC, the allocator will not sleep.
     75   The allocator CAN return NULL, when memory is not directly available.
     76   The caller MUST check if NULL was not returned
     77
     782) If the flags parameter does not contain FRAME_ATOMIC, the allocator
     79   will never return NULL, but it CAN sleep indefinitely. The caller
     80   does not have to check the return value.
     81
     823) The maximum size that can be allocated using malloc is 128K
     83
     84Rules 1) and 2) apply to slab_alloc as well. Using SLAB allocator
     85to allocate too large values is not recommended.
     86
Note: See TracChangeset for help on using the changeset viewer.