Problem with char driver write function - infinite loop
Hello,
I've a problem with a really simple write function in my first char driver. The function is as follows: Code:
... So the write function seems to be call infinite times. By the printk in the write function i can see that behavior. The failure goes from a simple echo > /dev/device to an C program using fwrite. I'm grateful for each hint. Thanks, Johannes S. |
Problem fixed.. I'be to return the values of the written bytes and not of the not written.
Correct is: Code:
|
All times are GMT -5. The time now is 06:54 AM. |