Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 03 Jul 2000 19:09:58 -0700
From:      Mike Smith <msmith@freebsd.org>
To:        Lyndon Nerenberg <lyndon@orthanc.ab.ca>
Cc:        freebsd-hackers@freebsd.org
Subject:   Re: Concurrent access to SMbus 
Message-ID:  <200007040210.TAA00657@mass.osd.bsdi.com>
In-Reply-To: Your message of "Mon, 05 Jun 2000 14:47:04 MDT." <200006052047.e55Kl5X51895@orthanc.ab.ca> 

next in thread | previous in thread | raw e-mail | index | archive | help
> I notice that the /dev/smbX devices are exclusive access. This makes
> it impossible to run two (or more) programs concurrently that want
> to talk to SMbus devices (in my case, healthd and lmmon, both of which
> want to open /dev/smb0 to access the LM78).
> 
> Is this an SMbus restriction, or an artifact of the smb driver? I did a
> very quick scan through /sys/dev/smbus/* and nothing jumped out to
> indicate why it needs to be exclusive access.

Transactions on the bus should be locked, ie. only one client talking at 
a time, but it should probably be feasible to allow more than one opener.

The SMBus code is dearly in need of a maintainer. 8(



-- 
\\ Give a man a fish, and you feed him for a day. \\  Mike Smith
\\ Tell him he should learn how to fish himself,  \\  msmith@freebsd.org
\\ and he'll hate you for a lifetime.             \\  msmith@cdrom.com




To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-hackers" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200007040210.TAA00657>