I have written a character device driver to toggle two GPIO pins. For reading the device, callback function is scull_read()
. The normal operations of the device open, read, write and close is functioning normally, If I am performing everything from the C program, but while performing the above operations from terminal using echo
and cat
, the callback functions for read and write (scull_read()
and scull_write()
) are being called for infinity times. At this stage, the kill signal ^c
to stop the process is not working for scull_write()
.
A test code is already available with name: strong text
Can you please help me with this.
Here is a github link: https://github.com/guruprasad-92/Device-Driver.git