* Re: multiple threads support
[not found] ` <AANLkTikS8XiA48HnFXZpC2p1qBqpntT7mJG=7YFVKOYY-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
@ 2011-01-16 11:01 ` Jean Delvare
0 siblings, 0 replies; only message in thread
From: Jean Delvare @ 2011-01-16 11:01 UTC (permalink / raw)
To: Felix Rubinstein; +Cc: Linux I2C
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
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2011-01-16 11:01 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
[not found] <AANLkTikS8XiA48HnFXZpC2p1qBqpntT7mJG=7YFVKOYY@mail.gmail.com>
[not found] ` <AANLkTikS8XiA48HnFXZpC2p1qBqpntT7mJG=7YFVKOYY-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2011-01-16 11:01 ` multiple threads support Jean Delvare
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox