kernelnewbies.kernelnewbies.org archive mirror
 help / color / mirror / Atom feed
From: <rdq@metamail.co>
To: "'Martin Christian'" <martin.christian@secunet.com>,
	<kernelnewbies@kernelnewbies.org>
Subject: RE: debugfs question ...
Date: Wed, 1 May 2019 13:06:58 +0100	[thread overview]
Message-ID: <013b01d50016$623e2ca0$26ba85e0$@metamail.co> (raw)
In-Reply-To: <531b212a-fb20-e2f2-f052-66e37fc5ba68@secunet.com>

> 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

Thank you, Martin, help much appreciated. It's a bit of a mystery but neither works for me. More detail in my reply to Greg KH.



_______________________________________________
Kernelnewbies mailing list
Kernelnewbies@kernelnewbies.org
https://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies

      reply	other threads:[~2019-05-01 12:07 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2019-04-30 11:45 debugfs question rdq
2019-04-30 12:07 ` Greg KH
     [not found]   ` <014a01d50028$ce098580$6a1c9080$@metamail.co>
2019-05-01 14:35     ` 'Greg KH'
2019-04-30 12:11 ` Martin Christian
2019-05-01 12:06   ` rdq [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to='013b01d50016$623e2ca0$26ba85e0$@metamail.co' \
    --to=rdq@metamail.co \
    --cc=kernelnewbies@kernelnewbies.org \
    --cc=martin.christian@secunet.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).