Adding Simple System Call in Linux Kernel
Vložit
- čas přidán 19. 05. 2024
- In this video I will add a hello world system call to the Linux kernel code and also show how it can be used from user mode.
Kernel Docs: www.kernel.org/doc/html/lates...
Online Kernel Code Viewer: elixir.bootlin.com/linux/late... - Věda a technologie
Do the programming overlords know that you're giving us all this forbidden knowledge?
These videos are top notch, really enjoying the short digestable deep dives
Excellent.
Short and to the point.
And no narcissistic talking head.
Consistent. Clear. Straight to the point. Love your work.
Really cool. I always wondered how syscalls work.
Your content is brilliant mate. Keep it up throughout the new year.
Theae videos are insanely good, keep it up. I learned so much already.
happy new years, nir! thanks for the upload
Neat!
I like how you have to edit three different files to add a single system call :D
Thanks for also explaining all the commands
Awesome video - would love a productionized version once your happy with it
This is perfectm thanks for being straight-forward.
Wow, thanks that is phenomenal!
I really enjoy these videos thanks
for me as noob in programing, nice to see how it works
Awesome! Thanks for the video
Nice, happy new yaer from Brazil!
Awesome!
yo mate i like your setup
what wm are you using? and do you have any config or dotfiles?
Thanks! I am using a port of Suckless dwm for Windows
The setup information is in the welcome link in the channel description (including my vimrc config file)
@@nirlichtman thx mate, i love your videos
i've started pursuing os development and your video really helps because they are concise and easy to understand, do you have any recommended resources?
@@mfaathirarsa Thanks! What kind of os dev? You mean programming user mode on Linux/Windows, kernel level programming or bare metal?
@@nirlichtman bare metal would be best because I'm trying to learn osdev from scratch, for now my resource is the osdev wiki
@@mfaathirarsa osdev is good from what i remember, also i would recommend checking out serenity os which is a work in progress os written in c++, the creator of this project also has a youtube channel in which he documents development of certain parts. Also i recommend learning how Linux/Windows boots up, it is very interesting and you can find a bunch of youtube videos about this, and also additional information on the linux kernel docs
Now i'm remembering "548" forever
Thanks!, can we call syscall through a single C program(file)?
Yes, you can call custom system calls (which don't have wrappers) from C using the syscall function, checkout "man 2 syscall" for more info
@@nirlichtman I think glibc provides C wrappers for many of the syscalls, right? Could you make a video showing how to add a syscall wrapper in glibc for your syscall? Glibc has some gnarly source code, so it would be cool to see how one grapples with that to add new syscall wrappers.
Awesome. Could you make a video about gdb?
Yes, planned :)
👍Great!
what about services/pidfiles(lockfiles)/daemons idk much about this.
Nice. I’m noob, why would it be useful to make a custom system call in the kernel? Wouldn’t the program in user mode be able to do anything with the current system calls?
you don't need to add a syscall most of the time, but if you're already adding features to the kernel, you might want to add a syscall to use that feature from userspace
Nice video, very informative. I am curious to know what is ramfs and cpio? What is newc?
Thanks! Checkout my video about making a minimal Linux distro for more information about these questions
SYS_leftpad when?
How is it possible to use windows with i3 as in the video?
I am using a port of Suckless dwm for Windows, more information in the welcome link on my channel
@@nirlichtman oh, I didn't know it was possible for windows, the video is awesome by the way keep that great content up!
Amazing Content!
Just casually adding syscalls to kernel... Yeah seems about right
still waiting the linux graphical.
hey how can i make a libc like gnu or musl
מפתיע שאין לך מבטא ישראלי כבד. מקנא
תודה :) מארה"ב במקור