From the course: Advanced Linux: The Linux Kernel
Unlock this course with a free trial
Join today to access over 24,700 courses taught by industry experts.
System calls in-depth - Linux Tutorial
From the course: Advanced Linux: The Linux Kernel
System calls in-depth
- [Instructor] System calls are a essential interface between user space and the kernel. The kernel provides services to user space by providing a set of functions. Those functions are called system calls. (page turning) So, these are functions implemented by the kernel and meant to be called from user space, although the mechanism (sniffs) isn't the same as a function call. In a program, it looks like you're just calling a function. The Linux kernel has somewhere around 300 system calls, not a huge number, and you can see some information about what they're called in the kernel source code of course. And there's an include file for basic system call information. Your man pages have system call information, and the documentation for system calls is in section two. So, if you say man two read, it would tell you about the read system call. But in actuality, an application like written in C or C++, other kind of compile languages will call a system call through a library. So, if a C…
Contents
-
-
-
Discover and control hardware5m 55s
-
(Locked)
Challenge: Hardware26s
-
(Locked)
Solution: Hardware1m 32s
-
(Locked)
System calls in-depth4m 30s
-
(Locked)
Challenge: System calls (syscalls)1m 51s
-
(Locked)
Solution: System calls (syscalls)4m 45s
-
(Locked)
Read messages from the kernel and /proc3m 34s
-
(Locked)
Challenge: kernel messages and proc1m 12s
-
(Locked)
Solution: kernel messages and proc2m 19s
-
(Locked)
Introduction to /sys2m 30s
-
(Locked)
Challenge: sysfs1m 17s
-
Solution: sysfs3m 38s
-
(Locked)
Device drivers and device files4m 17s
-
(Locked)
Challenge: Drivers and device files44s
-
(Locked)
Solution: Drivers and device files2m 47s
-
-
-
-
-
-