System calls are usually invoked by using
Note: Implementing system calls requires a transfer of control from user space to kernel space, which involves some sort of architecture-specific feature. A typical way to implement this is to use a software interrupt or trap. Interrupts transfer control to the operating system kernel, so software simply needs to set up some register with the system call number needed, and execute the software interrupt.
https://en.wikipedia.org/wiki/System_call#Typical_implementations
Saloni maheshwari yes the system calls prolly sets the register with the system call number needed so it is executed in user mode but then the interrupt transfers the control to kernel mode. So answer and the above comment are not contradictory to each other.
Ans) A Software interrupt
64.3k questions
77.9k answers
244k comments
80.0k users