Messages in this thread | | | From | Jon Maser <> | Date | Wed, 3 Apr 2024 17:06:19 -0700 | Subject | hi everyone. here are some c tips for the kernel. |
| |
instead of running around doing stuff like adding pointer to pointer functions to structs in the scheduler and pointing them at an algorithm or adding global pointers and posting patches (but after i read the source i will independently until i release code), i decided to write some things id like in the kernel
but here are some tips c tips picked up
pointer functions to and to in data structures ie Struct **fs(bffs handle) and messaging data structures with lists as return types for functions for mp and messaging data structures as return types and arguments of pointer functions the linux global macro function (suggestion) global structs, global pointers, global pointers to pointers (ie. you can just access a kernel struct in a module without a macro or much of one) the linux c/python tutorial made in c more gnu/programming languages
and it would be nice if someone wrote a fancy, universal debugger for the kernel, something like, you can check loops and directly in functions if compiled with a certain flag
| |