> my guess is your are not returning EOF (= 0). User space expects a return
> value of 0 (EOF) to terminate reading. But your code will always return
> sizeof("Hello world\n"). A fix would be to not only increment ppos, but also
> check if it's already behind your data.
>
> Regards,
>
> Martin
T
displayed.
The pattern for the implementation is (AFAICT) right out of the book (shown
below).
What am I missing? Any thoughts much appreciated.
TAIA.
RDQ
static ssize_t sc031gs_reg_read_file(struct file *file, char __user
*user_buf,
size_t count, lo