Write and Submit your first Linux kernel Patch

Sdílet
Vložit
  • čas přidán 28. 08. 2024
  • By Greg Kroah-Hartman
    As A core member of the Linux Kernel team, Greg will show us how to write a kernel patch.
    This talk will cover the steps necessary to properly compose, describe, and submit a Linux kernel patch. It will cover the basic usage of git, and how that works with the Linux kernel development cycle. Attendees should have a solid grasp of the C language, and know how to build and install, a Linux kernel from scratch (if not,reading the book, Linux Kernel in a Nutshell, free online, ahead of time would be a very good idea.)
    FOSDEM (Free and Open Source Development European Meeting) is a European event centered around Free and Open Source software development. It is aimed at developers and all interested in the Free and Open Source news in the world. Its goals are to enable developers to meet and to promote the awareness and use of free and open source software. More info at fosdem.org

Komentáře • 117

  • @jiananemail
    @jiananemail Před 9 lety +230

    I followed the instructions on this video, submitted my first patch on a Sunday night. Guess what ? I got reply next Monday morning and the maintainer said he would commit my patch. So don't just say thanks or share this video, follow the instruction and submit your first patch !!

    • @aaronvaldes3104
      @aaronvaldes3104 Před 8 lety +2

      +Nan Jia What happened to the Documentation\HOWTO? Did they move it in current Kernels Trees?

    • @aaronvaldes3104
      @aaronvaldes3104 Před 8 lety

      +Aaron Valdes I found it. LOL. It's a file, not a directory.

    • @scopestacker9787
      @scopestacker9787 Před 8 lety

      +Nan Jia Did Linus accept it? :D

    • @jiananemail
      @jiananemail Před 8 lety +9

      +scopestacker Yes, it was committed to the kernel. I will try to do few more.

    • @Ybalrid
      @Ybalrid Před 7 lety +4

      just sent a patch, that way right now! wish me luck ;-) (someone forgot a const when declaring a struct somewhere, making checkpatch unhappy :O )

  • @dickpiano1802
    @dickpiano1802 Před 6 měsíci +6

    I opened this video thinking it will be another useless conference presentation. 2 minutes into the presentation, I knew that this guy knows his stuff and I can learn a lot from him.

  • @eddinemo2399
    @eddinemo2399 Před 5 lety +24

    Those kernel guys and particularly Greg are so smart. Really I wish I had the same devlopping skills.

    • @FLMKane
      @FLMKane Před rokem +4

      They're hackers not developers. To them the whole computer is like a giant game

  • @linux786
    @linux786 Před 14 lety +13

    Great lecture. Shows how easy it is to start contributing to the kernel. I will start doing so right away!

  • @dimalmfao
    @dimalmfao Před 10 měsíci

    man, this is useful. remember, when you gonna commit your code, the next time you install linux, you should think another way.

  • @mehdizeynalov1062
    @mehdizeynalov1062 Před 5 měsíci +1

    amazed by this quality content. thank you.

  • @deogratiusekodi3431
    @deogratiusekodi3431 Před 23 dny

    Just watched it.. I'll definitely disturb Greg's inbox

  • @pyrokamileon
    @pyrokamileon Před 5 měsíci

    I would love to contribute to the kernel! I'm listening to this now while at work and I will play it again later and follow the steps..! 😎

  • @bluezhudong
    @bluezhudong Před 13 lety +3

    It's really great ! I will try to submit a patch to the upstream!

  • @rj-nj3uk
    @rj-nj3uk Před 6 lety +3

    Man I am too excited. I will be creating my own linux version. yaya!!

  • @Technicalturbo
    @Technicalturbo Před 6 lety

    Nice video with proper commands and configuration files .. keep it up

  • @anupdhond
    @anupdhond Před 9 lety +7

    nice video. By the way is it just me who thinks this guy's voice sounds like one of the winklewoss brothers from the movie "The Social Network" ? :)

    • @ashwin372
      @ashwin372 Před 3 lety +1

      Shit i can't undo that thought

  • @braoultvideos
    @braoultvideos Před 3 lety

    @J I - look in Documentation/process subdir. Doc about dev process have been moved there some time ago.

  • @chanvts
    @chanvts Před 14 lety

    great lecturing! excellent job sir!

  • @atjhamit
    @atjhamit Před 2 lety

    Thanks for this!

  • @Vatar88
    @Vatar88 Před 12 lety +16

    I used to program the Linux kernel like you until I deallocatted a pointer to the knee.

  • @hyperthreaded
    @hyperthreaded Před 13 lety +2

    It seems to me that you *can* have automated tests for hardware by emulating the hardware and running the kernel to be tested in a virtual machine.

  • @SohomBhattacharjee
    @SohomBhattacharjee Před 8 lety +5

    29:00 -> we do multiple inheritance, object overloading in C. my question... HOW? any references ?

    • @somedude4122
      @somedude4122 Před 6 lety +3

      structs and void pointers, and __attribute__((packed))

  • @MladenMijatov
    @MladenMijatov Před 13 lety

    I love this guy!

  • @SB-co7nn
    @SB-co7nn Před 9 lety

    Thank you, sir.

  • @balkiprasanna1984
    @balkiprasanna1984 Před 12 lety

    Thank you very much ... Very informative ...

  • @ji1046
    @ji1046 Před 3 lety +1

    where is documentation/howto ? I searched it in the source file documentation directory but there is no such file

  • @venkychunky1
    @venkychunky1 Před 14 lety

    Awesome!

  • @raxeax
    @raxeax Před 11 lety +2

    "Why don't you demonstrate your programming capabilities?"
    That was your sentence.

  • @manisadhasivam7712
    @manisadhasivam7712 Před 9 lety +1

    Nice video...At least for the newbies...

  • @chaitusvk1
    @chaitusvk1 Před 11 lety

    excellent

  • @sandun001
    @sandun001 Před 11 lety

    My boss always advise me , Keep Reading the Source code !
    He is a great US government officer man.
    He is great !

  • @DaVince21
    @DaVince21 Před 11 lety

    Isn't the answer obvious? If it's garbage, there's so much incentive to make it better.

  • @lordmetroid
    @lordmetroid Před 14 lety

    @KusuriRX No he says it is Goblin, the SUSE version of Moblin.

  • @Ikkepop
    @Ikkepop Před 11 lety

    you're incredible , and i'm secretly batman , but don't go telling everyone , i hide it under a false image/name

  • @dardevelin
    @dardevelin Před 11 lety

    An experienced Programmer tends to want to get rid of all tasks he can. Sometimes that means find the best way to save your time and not repeat to every newbie you meet. so yes you will watch/read basic stuff like an hello world, for the next time you don't explain and say "Hey, GO here"

  • @yon2004
    @yon2004 Před 14 lety

    OMG the best video ever

  • @maxx666mayhem
    @maxx666mayhem Před 14 lety

    awesome

  • @TheRealCykey
    @TheRealCykey Před 12 lety

    amazing talk. Thank you :)

  • @ilikewebm
    @ilikewebm Před 11 lety

    It would be cool if the FreeBSD Kernel would be as cool as Linux

  • @BAgodmode
    @BAgodmode Před 10 měsíci +1

    I’m a time traveler coming from the future. I only had enough fuel to go back this far.
    In 2025, on June 18th, 3:51AM CST, a small child in Oklahoma will watch this video, and then he will try what he sees in the video IN REAL LIFE.
    If Timothy Rosegarden of Enid, Oklahoma is reading, please do not do it.
    If you commit to the core of Linux, you will start a chain reaction that ends in an extinction level event for the people of earth, the refugees on IO, the Mars colony is doomed either way, but we can save earth and the people of IO,
    Just please, go back to watching Paw Patrol, do NOT code a Linux patch.

  • @cornboy3
    @cornboy3 Před 11 lety +1

    What window switcher are you using for your presentation? It looks awesome!

    • @njkevlani
      @njkevlani Před 5 lety

      I have the same question.

  • @alokcom
    @alokcom Před 4 lety

    How do we update the repo for next set of commit to kernel

    • @fosdemtalks
      @fosdemtalks  Před 4 lety

      FOSDEM is a yearly conference in Brussels, Belgium, which occurs in late January - early February. We record all our talks and put them online, but we don't actually create the content in those talks.
      If you want to know more about this talk, I suggest you contact the speaker directly.

  • @HermanWillems
    @HermanWillems Před 11 lety

    What is the maintainer quit maintaining ?

  • @psygaara
    @psygaara Před 11 lety

    and why you think that linux is "shitware"? and with which OS do you compare it? i really don't get you.. you can run linux anywhere and you can customize it as you want

  • @vha1207
    @vha1207 Před 3 lety

    2021 🤩

  • @sandun001
    @sandun001 Před 11 lety +1

    Great US government friendly great video !

  • @nadimalmas2725
    @nadimalmas2725 Před 8 lety

    can i resolve checks??
    to submit my first patch

  • @psygaara
    @psygaara Před 11 lety

    Yes I have, show me.

  • @sharabshaik8667
    @sharabshaik8667 Před 10 lety

    Can anyone explain me or share a link to set up the mail to send the patches

  • @The_Nickromancer
    @The_Nickromancer Před 12 lety

    can anyone tell me how to make a language patch for psp Japanese games alot of people are doing it for games and i want to know how

  • @ShamelessHorse
    @ShamelessHorse Před 11 lety

    Nice to hear each questioner had a totally different national accent.

  • @ServalLi
    @ServalLi Před 11 lety

    I'm considering use hotmail to send patches...

  • @souravmondal07
    @souravmondal07 Před 7 lety

    how to add that signed off line after commit message ?

  • @zownix
    @zownix Před 14 lety

    I'm guessing it's sugar but I'm not sure.

  • @numba1netsfan
    @numba1netsfan Před 13 lety

    @newe3 yea I think the problem for me is and was (im starting to actually grasp it) is thinking of the kernel as some untameable beast. Now that im looking at it as my bitch im starting to learn it. Its actually a strange program

  • @Rubdos
    @Rubdos Před 12 lety

    Exchange server WONT LET PATCHES THROUGH IT. LOOOOOL. I pressed 'like' at that point!

  • @inanme
    @inanme Před 12 lety

    Have you done anything so far?

  • @raf.nogueira
    @raf.nogueira Před 8 lety

    I want so much to be a kernel developer is some way that i can get money even only for food ? when i learning the thing ? I love the graphic things , drivers ,opengl , gtk , qt etc

  • @climatechangedoesntbargain9140

    ancient times

  • @DaVince21
    @DaVince21 Před 11 lety

    You know what's funny? The number of kernel developers HAS doubled now!

  • @miguelmorales3979
    @miguelmorales3979 Před 11 lety

    What is his OS?

  • @Ikkepop
    @Ikkepop Před 11 lety

    Oh so you're gonna pick on my grammar now ?
    That definatly proves that you can write a kernel

  • @numba1netsfan
    @numba1netsfan Před 13 lety

    I have "The C Programming Language" and "Linux Kernel Developement 2nd edition" are these good books for kernel hacking? The second book is published by novell i believe.

  • @LorenKuich76
    @LorenKuich76 Před 10 lety

    Yep.

  • @Ikkepop
    @Ikkepop Před 11 lety

    clearly , and i clearly have an uncredited nobel piece prize
    and know alot of fancy words too
    gotta do better then that

  • @ilikewebm
    @ilikewebm Před 11 lety

    Okay 700 lines..

  • @dolby360
    @dolby360 Před 5 lety

    Is this video still valid?

  • @FlightGearUser
    @FlightGearUser Před 12 lety

    Did you see his email address? @suse.de
    so probably he uses SuSe. But AFAIK, this depends on the desktop environment.

  • @tonupif
    @tonupif Před rokem

    Пиздато!

  • @thorham1346
    @thorham1346 Před 7 lety +14

    Eight space indentation? What the hell are these guys smoking?

    • @thesmileynoob
      @thesmileynoob Před 7 lety

      Thorham its not 8 spaces its 1 tab. How many spaces your editor displays as a tab can be configured.

    • @fastundercoverkitgoogle7381
      @fastundercoverkitgoogle7381 Před 6 lety

      But configuring your editor to display tabs as less than 8 spaces will inevitably lead to code that's shorter than 80 characters for you and longer for others

    • @nobytes2
      @nobytes2 Před 6 lety

      thesmileynoob usually 1 tab is 4 spaces, but Linux kernel uses 8 space tab.

  • @ilikewebm
    @ilikewebm Před 11 lety

    The company i tested had 1200 errors :-)

  • @gowthamgts
    @gowthamgts Před 10 lety

    what's the os he's using?

    • @TijmenvandenHeuvel
      @TijmenvandenHeuvel Před 10 lety

      I would guess OpenSUSE.

    • @milesrout
      @milesrout Před 10 lety

      He says it in the first 25 seconds idiot.

    • @gowthamgts
      @gowthamgts Před 10 lety +1

      Miles Rout That's great. We don't know that because we've never heard of moblin or goblin os. And do respect people.

    • @andresl.8903
      @andresl.8903 Před 10 lety

      Gowtham Gts Moblin is the predecessor from MeeGo, which is the direct predecessor of Sailfish OS from Jolla.

  • @koolkd12
    @koolkd12 Před 13 lety

    3 people use windows

  • @TheBuilder
    @TheBuilder Před 3 lety

    The title didn't imply it would get accepted :(

  • @Techz3
    @Techz3 Před 12 lety

    4 people are afraid of branches

  • @johnmcmanus6719
    @johnmcmanus6719 Před 10 lety

    On google play linux kernel in a nutshell is £13

  • @sophiabyfield-rich9259

    Xgrid egg

  • @psygaara
    @psygaara Před 11 lety

    don't blame Linux if you don't have skills, blame yourself.

  • @TaborKelly
    @TaborKelly Před 11 lety

    But it's open source: go fix it.

  • @GIANT1GF
    @GIANT1GF Před 11 lety

    P.S. why would you watch this video, if you already know for like 15 years on how to contribute to Linux? It's like a senior C developer watching a "hello world" tutorial.

  • @psygaara
    @psygaara Před 11 lety

    "If it's open source, it's open to shit. Enough said." - this is not an argument, sorry..
    also, they don't accept any patch you send

  • @Ikkepop
    @Ikkepop Před 11 lety

    i wonder if Linus Torvalds hides under a secret identity as a 15 year old school girl on the internet

  • @Ikkepop
    @Ikkepop Před 11 lety

    And i singlehandedly beat-up a grizzly bear while riding a unicycle, on a tightrope, over an active volcano, with angles singing in the background
    go get some proof, then bicker

  • @dylan.dsouza
    @dylan.dsouza Před 11 lety

    Lost count of how many 'shit's in the previous comments

  • @LorenKuich76
    @LorenKuich76 Před 10 lety

    "Couldn't code their way out of a simple web socket programming?". lol. I honestly don't get you.

  • @ShamelessHorse
    @ShamelessHorse Před 11 lety

    Your sentence means that it's obvious why anyone would contribute to Linux.

  • @robin2604
    @robin2604 Před 7 lety

    git gud

  • @raxeax
    @raxeax Před 11 lety

    Programming emo...bad joke.
    Are you serious?Youre saying here how are you good programmer,but i saw on you channel crap like this
    "Untrained girl presses 40 lb kettlebell overhead with one arm".
    I don't demonstrate my programming capabilites because i don't have this channel for making videos & no time for making videos.

  • @ryansmith6308
    @ryansmith6308 Před 11 lety

    You waste time. Honestly, you do.