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

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