Problem statement:
I’m trying to disable a device using the setup apis, but sometimes I’m experiencing an error due to it is involved in IO operations. Im looking for a way to make a device behave like it is removed physically or in some way to abruptly stop all the current IO operations of a device. Suggest a solution suitable for all kind of devices. I have seen a solution for ejecting a disk drive using the eject control code, however it is not working for other devices like wpd’s.
praveen is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.