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
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 !!
+Nan Jia What happened to the Documentation\HOWTO? Did they move it in current Kernels Trees?
+Aaron Valdes I found it. LOL. It's a file, not a directory.
+Nan Jia Did Linus accept it? :D
+scopestacker Yes, it was committed to the kernel. I will try to do few more.
just sent a patch, that way right now! wish me luck ;-) (someone forgot a const when declaring a struct somewhere, making checkpatch unhappy :O )
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.
Those kernel guys and particularly Greg are so smart. Really I wish I had the same devlopping skills.
They're hackers not developers. To them the whole computer is like a giant game
Great lecture. Shows how easy it is to start contributing to the kernel. I will start doing so right away!
amazed by this quality content. thank you.
It's really great ! I will try to submit a patch to the upstream!
man, this is useful. remember, when you gonna commit your code, the next time you install linux, you should think another way.
Just watched it.. I'll definitely disturb Greg's inbox
Man I am too excited. I will be creating my own linux version. yaya!!
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..! 😎
Nice video with proper commands and configuration files .. keep it up
great lecturing! excellent job sir!
Thanks for this!
I love this guy!
I used to program the Linux kernel like you until I deallocatted a pointer to the knee.
Thank you very much ... Very informative ...
Thank you, sir.
29:00 -> we do multiple inheritance, object overloading in C. my question... HOW? any references ?
structs and void pointers, and __attribute__((packed))
Awesome!
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.
@J I - look in Documentation/process subdir. Doc about dev process have been moved there some time ago.
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" ? :)
Shit i can't undo that thought
where is documentation/howto ? I searched it in the source file documentation directory but there is no such file
OMG the best video ever
excellent
@KusuriRX No he says it is Goblin, the SUSE version of Moblin.
"Why don't you demonstrate your programming capabilities?"
That was your sentence.
you're incredible , and i'm secretly batman , but don't go telling everyone , i hide it under a false image/name
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"
awesome
Nice video...At least for the newbies...
Isn't the answer obvious? If it's garbage, there's so much incentive to make it better.
My boss always advise me , Keep Reading the Source code !
He is a great US government officer man.
He is great !
amazing talk. Thank you :)
How do we update the repo for next set of commit to kernel
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.
What is the maintainer quit maintaining ?
It would be cool if the FreeBSD Kernel would be as cool as Linux
can i resolve checks??
to submit my first patch
Can anyone explain me or share a link to set up the mail to send the patches
2021 🤩
Great US government friendly great video !
I'm considering use hotmail to send patches...
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
how to add that signed off line after commit message ?
git commit -s
What window switcher are you using for your presentation? It looks awesome!
I have the same question.
@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
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
Yes I have, show me.
Have you done anything so far?
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.
Exchange server WONT LET PATCHES THROUGH IT. LOOOOOL. I pressed 'like' at that point!
What is his OS?
You know what's funny? The number of kernel developers HAS doubled now!
Nice to hear each questioner had a totally different national accent.
I'm guessing it's sugar but I'm not sure.
Oh so you're gonna pick on my grammar now ?
That definatly proves that you can write a kernel
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
Did you see his email address? @suse.de
so probably he uses SuSe. But AFAIK, this depends on the desktop environment.
ancient times
Is this video still valid?
what's the os he's using?
I would guess OpenSUSE.
He says it in the first 25 seconds idiot.
Miles Rout That's great. We don't know that because we've never heard of moblin or goblin os. And do respect people.
Gowtham Gts Moblin is the predecessor from MeeGo, which is the direct predecessor of Sailfish OS from Jolla.
clearly , and i clearly have an uncredited nobel piece prize
and know alot of fancy words too
gotta do better then that
Yep.
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.
Пиздато!
Okay 700 lines..
The company i tested had 1200 errors :-)
4 people are afraid of branches
3 people use windows
On google play linux kernel in a nutshell is £13
The title didn't imply it would get accepted :(
Xgrid egg
Eight space indentation? What the hell are these guys smoking?
Thorham its not 8 spaces its 1 tab. How many spaces your editor displays as a tab can be configured.
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
thesmileynoob usually 1 tab is 4 spaces, but Linux kernel uses 8 space tab.
i wonder if Linus Torvalds hides under a secret identity as a 15 year old school girl on the internet
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
don't blame Linux if you don't have skills, blame yourself.
But it's open source: go fix it.
"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
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.
git gud
Lost count of how many 'shit's in the previous comments
Your sentence means that it's obvious why anyone would contribute to Linux.
"Couldn't code their way out of a simple web socket programming?". lol. I honestly don't get you.
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.
You waste time. Honestly, you do.