Re: kernel provided system call is an API?
Glynn Clements <[email protected]>
| Newsgroups | org.kernel.vger.linux-c-programming |
|---|---|
| Message-ID | <[email protected]> |
Shriramana Sharma wrote: > 1. Can the system calls provided by the kernel be considered an API? System calls aren't strictly an *application* programming interface. Applications are supposed to use the libc functions. OTOH, the term "system call" is often used to refer to both of the actual system call and the corresponding libc function. IOW, read() is an API, syscall(SYS_read, ...) isn't. > 2. When an app using system calls is executed, would any code in the > kernel be executed? Yes. That's the point of system calls. -- Glynn Clements <[email protected]>