Linux Internals - SysCalls

  Рет қаралды 22,187

DJ Ware

DJ Ware

Күн бұрын

Пікірлер: 38
@emvdl
@emvdl 4 жыл бұрын
Thank you, great to watch, not boring at all! Really like these in depth and history videos 👍👍👍
@CyberGizmo
@CyberGizmo 4 жыл бұрын
Thank you Ernst glad you enjoyed it
@AlianeAbdelouahab
@AlianeAbdelouahab 3 жыл бұрын
12:05 this is just the best explaination i got for the syscalls ! one image that get it all !
@EugeneRoif
@EugeneRoif 2 жыл бұрын
Wow, I looked forever for content like this. Please keep it going
@kellyjohna
@kellyjohna 4 жыл бұрын
I remember the first time my older brother showed me Linux. I had just finished my mcse in Windows NT 4.0. I would also see guys with it under the bridge just East of Downtown Dallas where we would go to get the latest "deals" on hardware. I told my brother "this is junk, who wants to type and memorize all these commands" ! 25 years later I'm watching DJ Ware on youtube. Spent hours and went through tons of commands trying to burn a DVD on Centos 7 server yesterday (the only machine in the house with a cd rom) only to find out in the end it wasn't a burner after all. But I haven't gotten tired of learning yet...that's why I'm watching DJ's videos. Keep up the good work.
@CyberGizmo
@CyberGizmo 4 жыл бұрын
Kelly thanks for story I enjoyed it, and thank you also for the kind comments, if you have a usb port on one of your machines a usb stick will work in place of a cdrom as well. I use Etcher to create the usb image from an iso download.
@kellyjohna
@kellyjohna 4 жыл бұрын
@@CyberGizmo Thanks for the tip. Maybe I was writing the install files to the usb, but my last experience using a usb it was really slow. But I guess reading off of it shouldn't be a problem. But then again all the time I spent trying to burn one.... I'm gonna go with the usb method.
@אשרומוריה
@אשרומוריה 2 жыл бұрын
hi, mode bit means, we are in the kernel mode. when the sys_call is executed - the mode_bit is set to 0, when it returns to user mode, the mode_bit is set to 1
@diegonayalazo
@diegonayalazo 3 жыл бұрын
Thanks DJ. Love this series.
@Zjk580
@Zjk580 6 ай бұрын
Question, i was watching a seminar about LINUX RTOS, they mentioned a dual kernel in one of their slides. Is this the same concept as your hybrid kernel?
@emcpadden
@emcpadden 3 жыл бұрын
Great Video, I'm learning a lot from these! thank you!
@Demodude123
@Demodude123 4 жыл бұрын
Great video! I was confused why hostname would call uname in the background, but since this is strace, it's calling the uname(2) system call, not uname(1) in userspace. So both uname(1) and hostname(1) make a call to uname(2). They are likely similarly efficient, pulling more/less data out of the utsname struct.
@CyberGizmo
@CyberGizmo 4 жыл бұрын
Thanks Demodude, you are close, but hostname always uses gethostname call not the uname(2) call, that goes all the way back into UNIX.
@DasSkelett
@DasSkelett 3 жыл бұрын
@@CyberGizmo but doesn't the strace output show that it does indeed call uname, not gethostname?
@user-mr3mf8lo7y
@user-mr3mf8lo7y 2 жыл бұрын
Much appreciated.
@subee128
@subee128 11 ай бұрын
Thank you very much
@shrutibakshi5859
@shrutibakshi5859 3 жыл бұрын
loved it, thank you so much for such useful content
@UpcycleElectronics
@UpcycleElectronics 4 жыл бұрын
I saved this in my watch later list after seeing it in my subscription feed earlier, and I'm glad I did. First of all, I didn't understand the monolithic versus microkernel at all until this upload. I have also had "trap" on my short list of commands to figure out. "Software interrupt" should be at the top of simplified explanations, thanks. Do you have any tricks for strace that might help me better simplify it's output? I have tried to use strace to determine what commands are being run and directories accessed. For instance, I tried (unsuccessfully) to use strace in Fedora Silverblue. (I installed strace with rpm-ostree.) I was trying to figure out the podman commands I needed to use in order to replicate how the toolbox script mounts and runs the containers it creates. Perhaps there is a better tool? As far as this upload and the kernel, this type of breakdown, done in steps, is what I think I need. I have a couple of the O'Reilly kernel books, but my knowledge could be summed up as, a couple of Stage 1 Gentoo installs, with a custom kernel, following their guide. I was looking into designing a peripheral board for a laptop using one of the USB 3.0 chips listed in the kernel build options. The goal was to get it working natively across the south bridge just like the factory peripheral port controller, but I got overwhelmed and shelved the project for now. I was targeting an old spare Leno x200t with libreboot. It is just a curiosity, and a way to explore hardware interests. I'm not some misguided plebeian trying to be cheap. Anyways, I share this info with absolutely no expectations. This is just my trajectory and the foundation of my interests in the subject. Thanks for the upload. -Jake
@CyberGizmo
@CyberGizmo 4 жыл бұрын
Don''t hear the term trap much anymore, but on older mainframe computers a trap was a real thing which would light the error LEDs on the front panels and stop the machine (not crash) just stop it, you could take readings on the registers and then press th continue button and it would trundle on.
@UpcycleElectronics
@UpcycleElectronics 4 жыл бұрын
@@CyberGizmo sorry for my ramblings. I need to get out more. I noted the trap command in a few bash guide references.
@guilherme5094
@guilherme5094 4 жыл бұрын
Thanks again!
@CyberGizmo
@CyberGizmo 4 жыл бұрын
welcome Felix
@sleepyeyesvince
@sleepyeyesvince 4 жыл бұрын
Love how you (un-)intentionally numbered this series in a geeky way. As long as you number the next video "10" we'll be sweet ;) Were you a teacher in a former life DJ? I've certainly felt educated! Thank you. Let me see if I've got this right - so a syscall is like when I'm happily concentrating on a DJ Ware video and one of the kids demands my attention to do something for her? :D
@CyberGizmo
@CyberGizmo 4 жыл бұрын
Thanks For the idea will for sure have to move to a binary scheme so the next one will be 0000 0010 Yeah I taught some college level courses while working on my masters, and taught a few internals classes for Burroughs and AT&T. oh yeah that is exactly what a syscall is, or maybe its a high priority interrupt :)
@hexearth8258
@hexearth8258 4 жыл бұрын
This is the CyberGizmo, there is no fall asleep or stay bored with the content... it's exactly what we want. I really hope the Linux Internals series goes deep as debugging a program and understanding what is going on, as with malware on Windows, to see what it does and affects. And also look at some tools, that could be great to debug or gather information on what's going on in the system. Microsoft is developing Procmon for Linux just like the Windows version. Can we get that information with other Linux tools? Like every read or write done in the system?
@CyberGizmo
@CyberGizmo 4 жыл бұрын
Thank you Hex Earth appreciate it, yeah good thing ProcMon doesn't work lol yet :). Oh right its Microsoft code
@hexearth8258
@hexearth8258 4 жыл бұрын
@@CyberGizmo while (1) { lol(); }
@andarvidavohits4962
@andarvidavohits4962 4 жыл бұрын
Great content. If I were a thankless bastard, I'd say you should try to speak in less of a monotone but the truth of the matter is that I'm very excited and thankful to have such quality content served up free of charge.
@CyberGizmo
@CyberGizmo 4 жыл бұрын
Welcome Andarvid glad
@andarvidavohits4962
@andarvidavohits4962 4 жыл бұрын
@@CyberGizmo I see what you did there..
@ashishratnawat2711
@ashishratnawat2711 8 ай бұрын
Thank you for the lectures again! A question : So lets say Linux has X number of syscalls, so for every io or related operation a programming langage(python for example) would have to use one of these X to talk to the device or device driver for the said io operation. Right ?
@ashatdvg
@ashatdvg 4 жыл бұрын
Excellent work for cleaner explanayion, I have question what tools we use for debugging linux internals? for better understanding .
@CyberGizmo
@CyberGizmo 4 жыл бұрын
Avimash an interesting question, do you mean for writing applications or working on the kernel itself?
@ashatdvg
@ashatdvg 4 жыл бұрын
@@CyberGizmo working on kernel
@Fendisaoming
@Fendisaoming 4 жыл бұрын
Thanks for this video. Im definitely barely following but learned the hostname command. I was asked once in an interview what command would tell you the computer name.
@CyberGizmo
@CyberGizmo 4 жыл бұрын
Well that's one question down :). Thanks Fendisaoming
@rashie
@rashie 2 жыл бұрын
👍👍
Linux Protection Rings
26:45
DJ Ware
Рет қаралды 10 М.
Linux Internals - Process Management
34:39
DJ Ware
Рет қаралды 27 М.
To Brawl AND BEYOND!
00:51
Brawl Stars
Рет қаралды 17 МЛН
Support each other🤝
00:31
ISSEI / いっせい
Рет қаралды 81 МЛН
So Cute 🥰 who is better?
00:15
dednahype
Рет қаралды 19 МЛН
Linux Internals: Memory Management
37:56
DJ Ware
Рет қаралды 31 М.
Linux Internals: Virtual File System (VFS)
42:08
DJ Ware
Рет қаралды 26 М.
SysVinit vs Systemd
31:19
DJ Ware
Рет қаралды 57 М.
System calls at the assembly level
23:17
Artem Pianykh
Рет қаралды 10 М.
Steven Rostedt - Learning the Linux Kernel with tracing
1:07:25
OpenFest Bulgaria
Рет қаралды 99 М.
How Do Linux Kernel Drivers Work? - Learning Resource
17:02
LiveOverflow
Рет қаралды 567 М.
Unix system calls (1/2)
45:16
Brian Will
Рет қаралды 441 М.
How Does Linux Boot Process Work?
4:44
ByteByteGo
Рет қаралды 755 М.