whatis system-call

System Call (Syscall)

Also known as: syscall

The interface programs use to ask the kernel to do privileged work, such as opening files, allocating memory, or creating processes.

What Is a System Call in Linux?

User programs cannot touch hardware directly. Instead they call functions like open, read, write, mmap, and clone, which switch into kernel mode, do the work, and return.

strace shows every system call a program makes, which quickly reveals missing files, permission errors, or where a program is hanging.

Example

strace -e trace=openat ls /tmp