NetApp Interview Question for Software Engineer / Developers






Comment hidden because of low score. Click to expand.
1
of 1 vote

The below sequence of operations will occur.

1. In kernel, each system call is identified by a number.
2. When system call is called, first it calls the C lib wrapper function. This function place all the required information in the CPU registers. i.e. in case of ARM, R7 is placed with the system call id no.
3. After this, Software interrupt (SWI) is generated to switch the context from user to kernel space.
4. Now the process is in kernel mode, trap handler is called, system_call() to handle this.
5. Trap handler copied all the information from CPU register to kernel stack. It validates the information. It gets the required system call routine from sys_call_table().
6. After serving the actual system call, control is returned back to trap handler, and from there to user space.

- Madhu July 21, 2015 | Flag Reply
Comment hidden because of low score. Click to expand.
0
of 0 vote

System calls are for kernel service.
Using 0x80 INT, it jumps to kernel context.
For this u shd have asmlinkage pre-knowledge is required.
While implementation, u need to increment macro count from particular header file then define ur call and u need to put in corresponds...location

- mlakshmanarao July 20, 2011 | Flag Reply
Comment hidden because of low score. Click to expand.
0
of 0 vote

read Linux System Calls Part2 at rulingminds.com

- rulingminds July 31, 2011 | Flag Reply


Add a Comment
Name:

Writing Code? Surround your code with {{{ and }}} to preserve whitespace.

Books

is a comprehensive book on getting a job at a top tech company, while focuses on dev interviews and does this for PMs.

Learn More

Videos

CareerCup's interview videos give you a real-life look at technical interviews. In these unscripted videos, watch how other candidates handle tough questions and how the interviewer thinks about their performance.

Learn More

Resume Review

Most engineers make critical mistakes on their resumes -- we can fix your resume with our custom resume review service. And, we use fellow engineers as our resume reviewers, so you can be sure that we "get" what you're saying.

Learn More

Mock Interviews

Our Mock Interviews will be conducted "in character" just like a real interview, and can focus on whatever topics you want. All our interviewers have worked for Microsoft, Google or Amazon, you know you'll get a true-to-life experience.

Learn More