linux-iio.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Ge Gao <ggao@invensense.com>
To: Jonathan Cameron <jic23@kernel.org>
Cc: linux-iio@vger.kernel.org
Subject: sw_ring.c poll problem
Date: Tue, 15 May 2012 18:26:54 -0700	[thread overview]
Message-ID: <6e6a0f27b1900226df5350cc320f25bb@mail.gmail.com> (raw)

Dear all,
	I found that ring_sw.c the poll function has to read half of the
data for poll to work. Basically, you have to fill half of the ring buffer
in order for poll to be triggrerred. You have to also read more than half
of the data for poll to be disappeared. This would pose problems. If you
have big ring buffer, the data will lost its immediacy. If you have small
ring buffer, the data could lost if not buffered enough. Is that possible
this poll action configurable? Or I missed anything.
	Thanks.

Best regards,

Ge GAO

             reply	other threads:[~2012-05-16  1:26 UTC|newest]

Thread overview: 16+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-05-16  1:26 Ge Gao [this message]
2012-05-16  5:46 ` sw_ring.c poll problem Jonathan Cameron
2012-05-16  7:15   ` Jonathan Cameron
2012-05-16 17:16     ` Ge Gao
2012-05-18  1:08     ` Ge Gao
2012-05-18 17:30       ` Jonathan Cameron
2012-05-18 18:26         ` Ge Gao
2012-05-19  9:16           ` Jonathan Cameron
2012-05-19  9:41             ` Lars-Peter Clausen
2012-05-19  9:50               ` Jonathan Cameron
2012-05-19 10:43                 ` Lars-Peter Clausen
2012-05-19 14:12                   ` Jonathan Cameron
2012-05-19 14:21                     ` Jonathan Cameron
2012-05-21 17:03                   ` Ge Gao
2012-05-18 19:27         ` Ge Gao
2012-05-19  9:18           ` Jonathan Cameron

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=6e6a0f27b1900226df5350cc320f25bb@mail.gmail.com \
    --to=ggao@invensense.com \
    --cc=jic23@kernel.org \
    --cc=linux-iio@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 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).