What will happen when we invoke a system call and
say with an example of invoking a system call ?read? for a
device?

Answer Posted / kumar babu

• User process executes a syscall open a file.
• User process links to a c runtime library for open and
sets up the needed parameters in registers.
• A software trap is executed now and the operation switches
to the kernel mode.
- The kernel looks up the syscall vector to call "open"
- The kernel tables are modified to open the file.
- Return to the point of call with exit status.
• Return to the user process with value and status.
• The user process may resume now with modified status on
file or abort on error with exit status.

Is This Answer Correct ?    4 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What are system calls used for process management in linux?

571


I would like to know whether Simado and Setu products are they EPBX or not ?

1914


what are different ways the context switch happens from user to kernel space or vice-versa ?

2126


Explain process management system calls in linux?

534