Language Selection

English French German Italian Portuguese Spanish

How System Calls Work in Linux?

Filed under
HowTos

Every GNU/Linux programmer here reading this article must have used system calls to code their programs. GNU/Linux programming is incomplete without system calls. System calls are initiated by software interrupts. Before we delve into that, however, let’s define system calls.

A system call is the mechanism used by an application program to request service from the operating system, or more specifically, the operating system kernel.

Modern processors execute instructions in different privilege states. In system, where just two levels are defined (as in i386), these states are known as user mode and supervisor mode. These privilege levels are defined so that an operating system restrict can control the operations performed by the program. Controlling is done for reasons of security and stability. The kernel of the operating system should always run in privilege mode since it needs to do some operations. Such operations include accessing hardware devices, enabling and disabling interrupts, changing privileged processor state, and accessing memory management units.

Now with this setup of an operating system (with two modes of execution (considering only i386 architecture only)), we need a mechanism to transfer control safety from lesser privileged modes to higher privileged modes.

Full Story.

More in Tux Machines

Google launches new site to showcase its open source projects and processes

Google is launching a new site today that brings all of the company’s open source projects under a single umbrella. The code of these projects will still live on GitHub and Google’s self-hosted git service, of course, with the new site functioning as a central directory for them. While this new project is obviously meant to showcase Google’s projects, the company says it also wants to use it to provide “a look under the hood” of how it “does” open source. Read more

Tizen and Android

Day of Infamy, CRYENGINE, and Performance Tools

Red Hat: We're giving VMware a 'run for its money' in virtualization

Red Hat's enterprise virtualization product is proving stiff competition for VMware, Paul Cormier, EVP and president of products and technologies, claimed at Red Hat's North American Partner Conference in Las Vegas, Nevada yesterday. According to the executive, Red Hat Virtualization (RHV), the open source software vendor's mission-critical, end-to-end open source virtualization infrastructure, has made a name for itself in such a way that VMware customers are increasingly showing interest in the technology. Read more Also: Red Hat CEO says businesses remain confident under Trump Amazon, Red Hat, Tesaro Price Targets Raised; Snap Started At Hold Tech Today: Snap’d By Facebook, Apple’s Innovation, Red Hat Jumps