Are they in the same layer kernel?do they call each other?
What is difference between them?
What is difference between kernel API and system call ?
-
- Member
- Posts: 70
- Joined: Fri Nov 19, 2010 6:54 pm
Re: What is difference between kernel API and system call ?
Kernel API is a set of services provided by the kernel.
System call is one of the ways to invoke the kernel API functions.
System call is one of the ways to invoke the kernel API functions.
Learn to read.
-
- Member
- Posts: 70
- Joined: Fri Nov 19, 2010 6:54 pm
Re: What is difference between kernel API and system call ?
Are they in the same kernel layer?dozniak wrote:Kernel API is a set of services provided by the kernel.
System call is one of the ways to invoke the kernel API functions.
Re: What is difference between kernel API and system call ?
leetow2003 wrote:Are they in the same kernel layer?dozniak wrote:Kernel API is a set of services provided by the kernel.
System call is one of the ways to invoke the kernel API functions.
The Kernel API includes things that require access to such things, such as raw disk access (which would be processed by the FS driver and so on), starting a process etc.
Such API functions are usually exposed through system calls.
The call handler is usually in ring 0 along with the kernel, although your design may vary.
[nx] kernel: http://github.com/zhiayang/nx
Re: What is difference between kernel API and system call ?
syscall usually refer to interface that exposes to user space applications or drivers, as the interface for external entity to interact with the system.
Kernel API has no specific meaning, it depends on which context you are talking, it can be components for kernel developers, driver interfaces, or syscall, etc.
Kernel API has no specific meaning, it depends on which context you are talking, it can be components for kernel developers, driver interfaces, or syscall, etc.
-
- Member
- Posts: 70
- Joined: Fri Nov 19, 2010 6:54 pm
Re: What is difference between kernel API and system call ?
Could they call each other?could you give me an example?
Re: What is difference between kernel API and system call ?
Could functions call each other? They certainly can.leetow2003 wrote:Could they call each other?could you give me an example?
You must understand the meaning of the three-letter acronym "API". It means "application programming interface", i.e. it's a bunch of functions that your application can call.
For example, the VFS API consists of "open", "close", "read", "write", "seek" calls which your application can use to open, close,read and write files.
What relation does it have to the system call? Well, "open" could be implemented as a system call. It can also be implemented as an RPC to the VFS server. It can also be implemented as a direct function call. Therefore your question about "can kernel API and system call call each other?" makes no sense.
Learn to read.
Re: What is difference between kernel API and system call ?
Perhaps a syscall more reflects the kernel ABI rather?
Fudge - Simplicity, clarity and speed.
http://github.com/Jezze/fudge/
http://github.com/Jezze/fudge/
Re: What is difference between kernel API and system call ?
This is beginning to sound a lot like a homework question.leetow2003 wrote:Could they call each other?could you give me an example?