Linux Kernel Memory Allocation : LDD with Raspberry Pi #10

Published: 07 January 2026
on channel: MP Coding
421
26

In this video, we explore Linux kernel memory allocation mechanisms used in device driver development.

We discuss how kmalloc, kzalloc, and vmalloc work, when to use each one, and how GFP flags affect memory allocation behavior.
We also introduce the slab allocator, explain how it manages small kernel objects efficiently,
and demonstrate direct slab cache creation using example code.

Finally, we look at real kernel outputs using "/proc/meminfo" and "/proc/slabinfo",
and explain SLUB cache merging behavior.

Github :- https://github.com/madhawapolkotuwa/l...

Buy me a Coffee :
https://buymeacoffee.com/madhawapolb

#linux #raspberrypi #memoryallocation #linuxkernel


On this page of the site you can watch the video online Linux Kernel Memory Allocation : LDD with Raspberry Pi #10 with a duration of hours minute second in good quality, which was uploaded by the user MP Coding 07 January 2026, share the link with friends and acquaintances, this video has already been watched 421 times on youtube and it was liked by 26 viewers. Enjoy your viewing!