1
0
mirror of https://github.com/0xAX/linux-insides.git synced 2024-12-22 14:48:08 +00:00

Fix get_heap arguments meaning

`n` is not the number of bytes but the number of items which are each of
the given size.
This commit is contained in:
Remi Rampin 2015-09-20 15:31:23 -04:00
parent 6aaa477bc6
commit be59a42e94

View File

@ -83,7 +83,7 @@ for heap allocation. It calls the internal function `__get_heap` with 3 paramete
* size of a type in bytes, which need be allocated
* `__alignof__(type)` shows how variables of this type are aligned
* `n` tells how many bytes to allocate
* `n` tells how many items to allocate
Implementation of `__get_heap` is: