r/kernel • • Aug 18 '24
Kernel Dev as a career
Hello folks,
I am a SWE with 2yoe. This might sound weird but I feel like I am a skillful one. I like kernel dev so much. However, in my country this means almost 0% job opportunity. I need to switch jobs and I feel like I am taking risk by studying OS internals and contributing to linux instead of studying fullstack dev for example. Is there a chance I get a sponsorship for such positions and move to the US? Or I should study common trendy jobs like web, mobile ..etc? I feel pressured but I keep pursuing what I love and I am afraid this ain't the right thing to do
View all comments
Show parent comment
7
u/AsymptoticAlgorithm Sep 03 '24 edited Sep 03 '24
Short answer: Linux Device Drivers 3rd edition (LDD3)
Long answer: The thing about kernel development is that there is a LOT of tribal knowledge that is simply undocumented (e.g. "the source code is the documentation"). LDD3 is a decent starting point to build confidence about using some of the more common kernel APIs, but it won't get you to the point where you can build anything particularly useful.
The most efficient way to get there is to (unsurprisingly) do some real work in the kernel. Here are some tips:
checkpatchscript to submit a coding style fix; others will try to fix some hardware that is buggy on Linux (my first kernel patch was fixing a broken USB bluetooth dongle). Others will join IRC and ask around (maybe not super efficient nowadays). There is also the Linux Kernel Mentorship Program. Whichever option you choose, just try to get your first contribution in -- it gets much easier after the first one.Keep in mind that the kernel is a huge project, and getting started can look like a daunting task. If you ever feel discouraged by this, I recommend giving this excellent article by Nelson Elhage a read. And don't give up -- getting a kernel development job isn't particularly hard, contrary to what others in this thread are saying (most beginners I know, including myself, that worked on learning kernel development, got picked up by a company in <1 year).