Skip to content

Commit d9ee254

Browse files
committed
Lesson 23, step 4
1 parent 6f09492 commit d9ee254

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

23-fixes/README.md

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,12 @@ and use those data types instead of our own, then delete them on `type.h`
4343
-------------------------------
4444

4545
First, since `kmalloc` uses a size parameter, we'll use the correct data type `size_t` instead
46-
of `u32int_t`. `<stddef.h>` is required for `size_t`
46+
of `u32int_t`. `size_t` should be used for all parameters which "count" stuff and cannot be
47+
negative. Include `<stddef.h>`.
48+
49+
We will fix our `kmalloc` in the future, making it a proper memory manager and aligning data types.
50+
For now, it will always return a new page-aligned memory block.
51+
4752

4853
5. Missing functions
4954
--------------------

0 commit comments

Comments
 (0)