Write and Submit your first Linux kernel Patch

แชร์
ฝัง
  • เผยแพร่เมื่อ 22 ก.ย. 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

ความคิดเห็น • 117

  • @jiananemail
    @jiananemail 9 ปีที่แล้ว +229

    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 8 ปีที่แล้ว +2

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

    • @aaronvaldes3104
      @aaronvaldes3104 8 ปีที่แล้ว

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

    • @scopestacker9787
      @scopestacker9787 8 ปีที่แล้ว

      +Nan Jia Did Linus accept it? :D

    • @jiananemail
      @jiananemail 8 ปีที่แล้ว +9

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

    • @Ybalrid
      @Ybalrid 7 ปีที่แล้ว +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 6 หลายเดือนก่อน +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 5 ปีที่แล้ว +24

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

    • @FLMKane
      @FLMKane ปีที่แล้ว +4

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

  • @linux786
    @linux786 14 ปีที่แล้ว +13

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

  • @mehdizeynalov1062
    @mehdizeynalov1062 6 หลายเดือนก่อน +1

    amazed by this quality content. thank you.

  • @bluezhudong
    @bluezhudong 13 ปีที่แล้ว +3

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

  • @dimalmfao
    @dimalmfao 10 หลายเดือนก่อน

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

  • @deogratiusekodi3431
    @deogratiusekodi3431 หลายเดือนก่อน

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

  • @rj-nj3uk
    @rj-nj3uk 6 ปีที่แล้ว +3

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

  • @pyrokamileon
    @pyrokamileon 6 หลายเดือนก่อน

    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..! 😎

  • @Technicalturbo
    @Technicalturbo 6 ปีที่แล้ว

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

  • @chanvts
    @chanvts 14 ปีที่แล้ว

    great lecturing! excellent job sir!

  • @atjhamit
    @atjhamit 2 ปีที่แล้ว

    Thanks for this!

  • @MladenMijatov
    @MladenMijatov 13 ปีที่แล้ว

    I love this guy!

  • @Vatar88
    @Vatar88 12 ปีที่แล้ว +16

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

  • @balkiprasanna1984
    @balkiprasanna1984 12 ปีที่แล้ว

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

  • @SB-co7nn
    @SB-co7nn 9 ปีที่แล้ว

    Thank you, sir.

  • @SohomBhattacharjee
    @SohomBhattacharjee 8 ปีที่แล้ว +5

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

    • @somedude4122
      @somedude4122 6 ปีที่แล้ว +3

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

  • @venkychunky1
    @venkychunky1 14 ปีที่แล้ว

    Awesome!

  • @hyperthreaded
    @hyperthreaded 13 ปีที่แล้ว +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.

  • @braoultvideos
    @braoultvideos 3 ปีที่แล้ว

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

  • @anupdhond
    @anupdhond 9 ปีที่แล้ว +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 4 ปีที่แล้ว +1

      Shit i can't undo that thought

  • @ji1046
    @ji1046 3 ปีที่แล้ว +1

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

  • @yon2004
    @yon2004 14 ปีที่แล้ว

    OMG the best video ever

  • @chaitusvk1
    @chaitusvk1 11 ปีที่แล้ว

    excellent

  • @lordmetroid
    @lordmetroid 14 ปีที่แล้ว

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

  • @raxeax
    @raxeax 11 ปีที่แล้ว +2

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

  • @Ikkepop
    @Ikkepop 11 ปีที่แล้ว

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

  • @dardevelin
    @dardevelin 11 ปีที่แล้ว

    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"

  • @maxx666mayhem
    @maxx666mayhem 14 ปีที่แล้ว

    awesome

  • @manisadhasivam7712
    @manisadhasivam7712 9 ปีที่แล้ว +1

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

  • @DaVince21
    @DaVince21 11 ปีที่แล้ว

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

  • @sandun001
    @sandun001 11 ปีที่แล้ว

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

  • @TheRealCykey
    @TheRealCykey 12 ปีที่แล้ว

    amazing talk. Thank you :)

  • @alokcom
    @alokcom 4 ปีที่แล้ว

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

    • @fosdemtalks
      @fosdemtalks  4 ปีที่แล้ว

      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 11 ปีที่แล้ว

    What is the maintainer quit maintaining ?

  • @ilikewebm
    @ilikewebm 11 ปีที่แล้ว

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

  • @nadimalmas2725
    @nadimalmas2725 8 ปีที่แล้ว

    can i resolve checks??
    to submit my first patch

  • @sharabshaik8667
    @sharabshaik8667 10 ปีที่แล้ว

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

  • @vha1207
    @vha1207 3 ปีที่แล้ว

    2021 🤩

  • @sandun001
    @sandun001 11 ปีที่แล้ว +1

    Great US government friendly great video !

  • @ServalLi
    @ServalLi 11 ปีที่แล้ว

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

  • @The_Nickromancer
    @The_Nickromancer 12 ปีที่แล้ว

    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

  • @souravmondal07
    @souravmondal07 7 ปีที่แล้ว

    how to add that signed off line after commit message ?

  • @cornboy3
    @cornboy3 11 ปีที่แล้ว +1

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

    • @njkevlani
      @njkevlani 5 ปีที่แล้ว

      I have the same question.

  • @numba1netsfan
    @numba1netsfan 13 ปีที่แล้ว

    @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

  • @psygaara
    @psygaara 11 ปีที่แล้ว

    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

  • @psygaara
    @psygaara 11 ปีที่แล้ว

    Yes I have, show me.

  • @inanme
    @inanme 12 ปีที่แล้ว

    Have you done anything so far?

  • @BAgodmode
    @BAgodmode 11 หลายเดือนก่อน +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.

  • @Rubdos
    @Rubdos 12 ปีที่แล้ว

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

  • @miguelmorales3979
    @miguelmorales3979 11 ปีที่แล้ว

    What is his OS?

  • @DaVince21
    @DaVince21 11 ปีที่แล้ว

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

  • @ShamelessHorse
    @ShamelessHorse 11 ปีที่แล้ว

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

  • @zownix
    @zownix 14 ปีที่แล้ว

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

  • @Ikkepop
    @Ikkepop 11 ปีที่แล้ว

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

  • @raf.nogueira
    @raf.nogueira 8 ปีที่แล้ว

    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

  • @FlightGearUser
    @FlightGearUser 12 ปีที่แล้ว

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

  • @climatechangedoesntbargain9140
    @climatechangedoesntbargain9140 3 ปีที่แล้ว +1

    ancient times

  • @dolby360
    @dolby360 5 ปีที่แล้ว

    Is this video still valid?

  • @gowthamgts
    @gowthamgts 10 ปีที่แล้ว

    what's the os he's using?

    • @TijmenvandenHeuvel
      @TijmenvandenHeuvel 10 ปีที่แล้ว

      I would guess OpenSUSE.

    • @milesrout
      @milesrout 10 ปีที่แล้ว

      He says it in the first 25 seconds idiot.

    • @gowthamgts
      @gowthamgts 10 ปีที่แล้ว +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 10 ปีที่แล้ว

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

  • @Ikkepop
    @Ikkepop 11 ปีที่แล้ว

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

  • @LorenKuich76
    @LorenKuich76 11 ปีที่แล้ว

    Yep.

  • @numba1netsfan
    @numba1netsfan 13 ปีที่แล้ว

    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.

  • @tonupif
    @tonupif ปีที่แล้ว

    Пиздато!

  • @ilikewebm
    @ilikewebm 11 ปีที่แล้ว

    Okay 700 lines..

  • @ilikewebm
    @ilikewebm 11 ปีที่แล้ว

    The company i tested had 1200 errors :-)

  • @Techz3
    @Techz3 12 ปีที่แล้ว

    4 people are afraid of branches

  • @koolkd12
    @koolkd12 13 ปีที่แล้ว

    3 people use windows

  • @johnmcmanus6719
    @johnmcmanus6719 10 ปีที่แล้ว

    On google play linux kernel in a nutshell is £13

  • @TheBuilder
    @TheBuilder 3 ปีที่แล้ว

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

  • @sophiabyfield-rich9259
    @sophiabyfield-rich9259 3 ปีที่แล้ว

    Xgrid egg

  • @thorham1346
    @thorham1346 7 ปีที่แล้ว +14

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

    • @thesmileynoob
      @thesmileynoob 7 ปีที่แล้ว

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

    • @fastundercoverkitgoogle7381
      @fastundercoverkitgoogle7381 6 ปีที่แล้ว

      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 6 ปีที่แล้ว

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

  • @Ikkepop
    @Ikkepop 11 ปีที่แล้ว

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

  • @Ikkepop
    @Ikkepop 11 ปีที่แล้ว

    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

  • @psygaara
    @psygaara 11 ปีที่แล้ว

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

  • @TaborKelly
    @TaborKelly 11 ปีที่แล้ว

    But it's open source: go fix it.

  • @psygaara
    @psygaara 11 ปีที่แล้ว

    "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

  • @GIANT1GF
    @GIANT1GF 11 ปีที่แล้ว

    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.

  • @robin2604
    @robin2604 7 ปีที่แล้ว

    git gud

  • @dylan.dsouza
    @dylan.dsouza 11 ปีที่แล้ว

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

  • @ShamelessHorse
    @ShamelessHorse 11 ปีที่แล้ว

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

  • @LorenKuich76
    @LorenKuich76 11 ปีที่แล้ว

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

  • @raxeax
    @raxeax 11 ปีที่แล้ว

    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 11 ปีที่แล้ว

    You waste time. Honestly, you do.