From: bvanassche@acm.org (Bart Van Assche)
To: linux-arm-kernel@lists.infradead.org
Subject: sg_is_chain() call in coh901318_lli_fill_sg()
Date: Mon, 04 Feb 2013 12:33:13 +0100 [thread overview]
Message-ID: <510F9C79.4090108@acm.org> (raw)
Hello,
I'm trying to understand how coh901318_lli_fill_sg() works by studying
the source code of that function. In that function I found the following
code:
for_each_sg(sgl, sg, nents, i) {
if (sg_is_chain(sg)) {
[ ... ]
Can anyone explain me why that construct makes sense ? As far as I can
see in lib/scatterlist.c sg_next() ensures that the for_each_sg() skips
those elements for which sg_is_chain(sg) == true. Does that mean that
sg_is_chain(sg) always evaluates to false in the above loop ?
Thanks,
Bart.
next reply other threads:[~2013-02-04 11:33 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-02-04 11:33 Bart Van Assche [this message]
2013-02-19 12:05 ` sg_is_chain() call in coh901318_lli_fill_sg() Per Forlin
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=510F9C79.4090108@acm.org \
--to=bvanassche@acm.org \
--cc=linux-arm-kernel@lists.infradead.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).