new_perl
new_perl

Reputation: 7735

What's the design principle of syscall?

How does Linux determine that some functionality should be classified as syscall while others can be directly implemented in user space?

Upvotes: 2

Views: 186

Answers (1)

Nektarios
Nektarios

Reputation: 10371

A system call is performed when processing must occur in the Kernel - meaning that it requires escalated privileges or access to kernel-private resources. Typically if something can be kept in userspace, it's done there. There could be performance reasons when things are moved to kernel processing, and therefore would require a system call to perform. Another facet is that the transition between userspace and kernelspace is relatively expensive.

Upvotes: 1

Related Questions