From: Rodolfo Giometti <giometti@enneenne.com>
To: Christian Riesch <christian.riesch@omicron.at>
Cc: linux-kernel@vger.kernel.org
Subject: Re: [PATCH] pps: Add support for read operations and return a useful value in poll
Date: Wed, 1 Apr 2015 10:11:41 +0200 [thread overview]
Message-ID: <20150401081133.GA4384@enneenne.com> (raw)
In-Reply-To: <1427837482-2841-1-git-send-email-christian.riesch@omicron.at>
On Tue, Mar 31, 2015 at 11:31:22PM +0200, Christian Riesch wrote:
> The PPS_FETCH ioctl in drivers/pps/pps.c blocks until a new PPS event
> occurs, then returns the time stamp data. While this is fine for
> lots of applications, sometimes it would be nice if the poll system
> call and a subsequent read could be used to obtain the pps data.
Nak. The read syscall can't be forced to return fix amount of
data.
Use a dedicated ioctl instead.
Ciao,
Rodolfo
--
HCE Engineering e-mail: giometti@hce-engineering.com
GNU/Linux Solutions giometti@enneenne.com
Linux Device Driver giometti@linux.it
Embedded Systems phone: +39 349 2432127
UNIX programming skype: rodolfo.giometti
Cosino Project - the quick prototyping embedded system - www.cosino.io
Freelance ICT Italia - Consulente ICT Italia - www.consulenti-ict.it
next prev parent reply other threads:[~2015-04-01 8:44 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-03-31 21:31 [PATCH] pps: Add support for read operations and return a useful value in poll Christian Riesch
2015-04-01 8:11 ` Rodolfo Giometti [this message]
2015-04-01 11:56 ` Christian Riesch
2015-04-01 12:01 ` Christian Riesch
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=20150401081133.GA4384@enneenne.com \
--to=giometti@enneenne.com \
--cc=christian.riesch@omicron.at \
--cc=linux-kernel@vger.kernel.org \
/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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.