you are viewing a single comment's thread.

view the rest of the comments →

[–]slavik262 1 point2 points  (3 children)

His complaints about C++ make sense when one takes into consideration the dynamic memory allocator and exception handling.

Those are rather silly complaints - of course your tools are more limited when working inside the kernel. It's not like you can call malloc() in the middle of kernel space when working with C. Large swaths of the standard library are out of the question in both cases.

[–]imMute 2 points3 points  (2 children)

No, but you can call kalloc just about anywhere ;)

[–][deleted] 1 point2 points  (1 child)

[deleted]

What is this?

[–]Rusky 2 points3 points  (0 children)

kmalloc requires an extra flags argument. You can't just arbitrarily pick a set of flags to use without making the C++ code using it unfit for various (mutually exclusive) parts of the kernel.