From: Jean Delvare <khali-PUYAD+kWke1g9hUCZPvPmw@public.gmane.org>
To: Felix Rubinstein <felixru-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
Cc: Linux I2C <linux-i2c-u79uwXL29TY76Z2rM5mHXA@public.gmane.org>
Subject: Re: multiple threads support
Date: Sun, 16 Jan 2011 12:01:19 +0100 [thread overview]
Message-ID: <20110116120119.43f27f15@endymion.delvare> (raw)
In-Reply-To: <AANLkTikS8XiA48HnFXZpC2p1qBqpntT7mJG=7YFVKOYY-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
On Sun, 16 Jan 2011 12:56:40 +0200, Felix Rubinstein wrote:
> Hi Jean,
>
> I've searched mailing list and skimmed over the code to understand whether
> kernel supports multiple threads support.
> In other words, what if I have multiple threads writing over the same smbus
> bus, i.e. the same /dev/i2c-X device but to different chip addresses.
> Chip address is passed by means of I2C_SLAVE ioctl and not as part of the
> i2c_smbus_write_... API meaning any thread could overwrite chip address.
>
> Is it possible to have multiple threads writing to different chip addresses
> on the same bus, to get better (in parallel) performance from user-space?
Access to every I2C bus is serialized by the kernel. So yes, it is
possible, but no, this won't improve performance significantly.
--
Jean Delvare
parent reply other threads:[~2011-01-16 11:01 UTC|newest]
Thread overview: expand[flat|nested] mbox.gz Atom feed
[parent not found: <AANLkTikS8XiA48HnFXZpC2p1qBqpntT7mJG=7YFVKOYY-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>]
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=20110116120119.43f27f15@endymion.delvare \
--to=khali-puyad+kwke1g9huczpvpmw@public.gmane.org \
--cc=felixru-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org \
--cc=linux-i2c-u79uwXL29TY76Z2rM5mHXA@public.gmane.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