使用这种方法的最大问题就是它是一个标准接口,很难将新的系统调用增加到内核中,因此可以通过其他方法来实现类似服务。
The biggest problem with them is that it's a standardized interface. It would be difficult to have your new system call added to the kernel, so any additions are likely served through other means.
如果您无意将自己的系统调用加入公共的Linux内核中,那么系统调用就是将内核服务提供给用户空间的一种方便而且有效的方法。
If you have no intent of mainlining your system calls into the public Linux kernel, then system calls are a convenient and efficient way to make kernel services available to user-space.
在操作系统中,系统调用,也称为系统服务请求,是应用程序用来向操作系统内核请求服务的一种机制。
In operating systems, a system call, also known as a system service request, is the mechanism an application USES to request service from the operating system's kernel.
应用推荐