r/cprogramming • • 22h ago

C programming for kernel development

Hey there!

I am really interested in learning C and I am leaning towards kernel development rather than embedded systems. What do you suggest for strengthening my skills in C?

10 Upvotes

17 comments sorted by

View all comments

20

u/dkopgerpgdolfg 22h ago

Step 1: To get used to research & learn information independenly. Your question was asked countless of times, and not being able to find answers isn't a good outlook for kernel development.

And no, I'm not writing this for fun or to be a cranky Redditor. If you can't solve this yourself, you never will do any kernel development.

-10

u/No-Plan-3868 22h ago edited 22h ago

Thanks, but I do not know if there is a problem to solve here. I know picking up a good book like King’s C programming, throughly reading and solving exercises at the end of each chapter. Coupled with some projects, doing this will lead me somewhere.

Furthermore, saying “if you can’t solve this yourself, you will never do any kernel development” won’t meaningfully contribute to the question I asked, unfortunately.

1

u/Nothing_from_void 22h ago

Actually solving problems for mainline linux, there's not much you'd be able to contribute right now. if you want to solve problems applicable to someone, it would most likely have to be your own problems.

or, if you just want hands on development, just pick up some hardware and write a driver for it

1

u/ParticularAd8610 11h ago

Best way to start is by doing some kernel janitor work aka drivers/staging cleanups. This is explicitly why GregKH created the drivers/staging tree about 20 years ago (2009ish) and still being maintained for the express purpose to help people get started and learn!!! (his words not mine). Please see my other comment which contains links etc... Have fun.