Slashdot Mirror


Breaking Into The World Of Kernel Hacking?

crow_t_robot asks: "In the past couple of months I have become increasingly interested in kernel programming and have finally decided to take the leap and 'get my hands dirty.' I have searched around the web and read a few docs and FAQs on getting started with the kernel but I was wondering what kind of personal experiences those in the Slashdot crowd have had that are so bold as to start goofing with the kernel code. For those that have become competent kernel programmers, how did you 'break in' and what advice would you give beginners?"

17 of 202 comments (clear)

  1. That's easy by adlam.bor · · Score: 4, Funny
    Just start putting together your own VM system. If recent events are any indication, no experience is required.

    (Now taking bets on whether this first hits -1 Troll or +5 Funny).

    1. Re:That's easy by JordoCrouse · · Score: 3, Funny

      Not exactly right. You do need experience in being convinced that the code you write is superior to all others, despite any indications to the contrary.

      --
      Do you have Linux and a DotPal? Click here now!
    2. Re:That's easy by Fillup · · Score: 2, Funny

      Well in that case, I'm perfect!

      Oh wait ... i should probably learn C properly first ...

      --
      "I think there is a world market for, maybe, five computers." __ IBM Chairman, 1943 __
  2. Tools for breaking in by KingPrad · · Score: 1, Funny
    I always carry a small set of lockpicks. Gloves and a mask are a must.

    To protect against modern DNA evidence collection, wrap youself completely in saran wrap except for breathing holes also.

    If you get desperate, cut yourself with something sharp lying around the house and sue the owners. Works every time. Good luck on your new career!

    --KingPrad

    Two fish are in a tank. One says to the other, "I'll drive. You man the guns."

    --
    Stop the Slashdot Effect! Don't read the articles!
  3. Use a kernel debugger by Anonymous Coward · · Score: 1, Funny

    Connect remotely to a debug build of the OS on a seperate machine than your host machine and step through the code. Set breakpoints at places that look interesting, and just skip over things that don't do much. Watch the registers and keep an eye out for error codes, these will tell you what's going on with the OS.

    Oh wait, you need a kernel debugger...

    Nevermind.

  4. start with something simple by Anonymous Coward · · Score: 1, Funny

    Take a knife and start hacking a cherry kernel. When you become good it at, you can try hacking a peach kernel with an axe, then a mango kernel with a chainsaw, and so on...

  5. Re:Sorry dude, but ... by kippy · · Score: 4, Funny

    If you don't have that much of experience, I would start making a device driver for a relatively simple device.

    dude, don't take the bait! he's just trying to get someone to write a driver for his mp3 player.

  6. Re:In honor of all the linux newsgroups... by Dman33 · · Score: 5, Funny

    Could someone please tell me what does RTFM stand for?!?!

    RTFM!!!

    Thanks for the set-up! :)

  7. Re:In honor of all the linux newsgroups... by jsprat · · Score: 4, Funny

    Could someone please tell me what does RTFM stand for?!?!

    Yeah, Microsoft can. Great knowledge base article.

  8. Re:different kinds of "nerds" by JordoCrouse · · Score: 5, Funny

    i bet that guy can hack a kernel but can't figure out how to change his oil or replace an alternator or something like that

    That is true, but in the spirit of open source, we just borrow somebody else's car.

    --
    Do you have Linux and a DotPal? Click here now!
  9. Find a need.... by aiken_d · · Score: 5, Funny

    Rather than just hacking in general, you should identify a particular area where kernal development has lagged. That way, you can make incremental improvements in long-neglected code rather than trying to one-up the preeminent kernel hackers.

    For instance, I've noticed that there is a sad lack of resources devoted to incorporating practical jokes into the kernel. Everything is so "write to disk, read from disk, move bytes around, manage processes" boring.

    I've got some ideas you might want to consider for your first project. Implement these babies, and I'm sure you'll garner a great deal of attention.

    - Fake "blue screen" crashes: When "root" is logged on locally, intermittently go to a blue screen with memory dump info for a few seconds, then switch back to console mode as if nothing happened.

    - "Ha! Just Kidding!" memory manager: when an app requests a memory allocation, periodically claim that it has failed for no reason at all. That'll keep 'em laughing forever!

    - Unionized thread scheduling: implement the concepts of lunch breas, smoke breaks, and overtime into thread scheduling. Union threads should refuse to work with non-union threads. Periodic strikes for better working conditions, and so on.

    Do a good job with this stuff, and I'd be shocked if it wasn't included in the main tree!

    Cheers
    -b

    --
    If I wanted a sig I would have filled in that stupid box.
  10. Re:Sorry dude, but ... by VFVTHUNTER · · Score: 4, Funny

    I recall a certain Finnish nerd, who sat around in his bathrobe in his mom's apartment all the way thru college. Apparently with those credentials he managed to write a pretty decent OS...

  11. Already done by scorcherer · · Score: 2, Funny

    It's called XP

    --

    --
    The Cap is nigh. Time to get a fresh new account.

  12. Before you dive in, read this!!!! by 2Bits · · Score: 5, Funny
    Oh so, you want to hack kernel? Well, let me tell ya, before you get in this, you need to do the following prelim works:

    • Divorce if you are married, unless your other half also wants to hack kernel. Even that, make sure you two don't hack the same module.
    • Say goodbye to your bf/gf, unless your significant other also wants to hack kernel. Even that, make sure you two don't hack the same module.
    • Get rid of redundant furnitures. You'll have a lot more computers, so you need space.
    • Get a good air conditioner. Oh yeah, all those computers you have, it's going to be hot.
    • Get a good and large freezer. Read next items to see why.
    • Stack up a lot of beer, coke, moutain dew.
    • Get a good coffee maker, with a big pot, preferably with vacuum insulation.
    • Stack up a lot of coffee
    • Stack up a lot of frozen pizzas and frozen food.
    • Get rid of your lamps. You don't need that. You'll glow anyway.
    • Get rid of all your light color clothes. Get some black clothes. Any kernel hacker worth two cans of beer will wear black clothes.
    • Get rid of your razors. Any kernel hacker worth two cans of beer will have beard. Linus is an exception, his skin is too thick, so it doesn't even grow.
    • Save money on soap and detergent. Any kernel hacker worth two cans of beer is smelly.


    Ok, now you can go back to read all these good advices that other /.ers gave.

  13. Re:very easy... 10 steps to kernel coding: by tofus · · Score: 4, Funny

    "4. Read the kernel source." Yeah. Well, i stopped after the first 300 pages. I found the plot a bit too thin. Maybe it gets better along the way, i dunno. I liked the photo version of the kernel a lot better ;p

  14. Re:very easy... 10 steps to kernel coding: by Phork · · Score: 3, Funny

    I think the audio version is even better.(dd if=linux-2.4.17.tar.bz2 of=/dev/dsp)

    --
    -- free as in swatantryam - not soujanyam.
  15. Re:very easy... 10 steps to kernel coding: by biglig2 · · Score: 3, Funny

    SPOILER ALERT:

    The butler does it, in the library with the scheduler code.

    --
    ~~~~~ BigLig2? You mean there's another one of me?