Re: multiple threads support

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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
--
To unsubscribe from this list: send the line "unsubscribe linux-i2c" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[Index of Archives]     [Linux GPIO]     [Linux SPI]     [Linux Hardward Monitoring]     [LM Sensors]     [Linux USB Devel]     [Linux Media]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux