A method and a system for treating interrupts in an embedded system is disclosed. A host device driver receives an interrupt designating a hardware device. An indication of the interrupt, also designating the hardware device, is sent toward a proxy. The indication of the interrupt is translated by the proxy into a blocking signal designating the hardware device. The blocking signal reaches an application device driver. In response, the application device driver generates a control signal for the hardware device. The control signal transits through the proxy, which translates the control signal into a command and forwards the command to the host device driver. The host device driver executes the command. In the embedded system, a plurality of application device drivers may relate to a corresponding plurality of hardware devices.