3 ms·
Hum.. the Linux Kernel, it's pretty big :) You get kmalloc() and kfree(), which are very similar to malloc() and free(). (Okey you also get kmem_cache_alloc()/
by nviennot 15y ago
Hum.. the Linux Kernel, it's pretty big :)
You get kmalloc() and kfree(), which are very similar to malloc() and free(). (Okey you also get kmem_cache_alloc()/kmem_cache_free() which gives you the ability to provide a ctor/dtor, but they are explicit)
tmalloc() does too much: The day you have some memory corruption / leak, you'll start being scared of using tmalloc().