Reputation: 7735
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
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