Tech Mahindra interview question

How do you access kernel functions of the operating system?