kernelnewbies.kernelnewbies.org archive mirror
 help / color / mirror / Atom feed
* Device driver over network
@ 2017-12-18 21:30 Max Ruttenberg
  2017-12-19  2:37 ` Rik van Riel
  0 siblings, 1 reply; 2+ messages in thread
From: Max Ruttenberg @ 2017-12-18 21:30 UTC (permalink / raw)
  To: kernelnewbies

Hi all,

I have two compute nodes on a machine that are both running embedded
Linux. The nodes are connected to each other over Ethernet.

The both have an i2c bus. Node A has a thermal sensor. Node B has three fans.

Right now I have a user space application running on node B that uses
ssh to read from node A's thermal sensor and then adjust the fan
speeds accordingly. I am wondering if there's away instead to have a
hwmon driver running on Node B for the thermal monitor running on node
A. This way I could get rid of the user space application and replace
it with something a little bit more standard like thermald.

Is this something that people have done? Maybe if not this
specifically, how about a driver for a device over the network?

-- 
Max Ruttenberg,
Member of the Technical Staff
Emu Technology
270 W 39th St. #1302
New York, NY 10018

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Device driver over network
  2017-12-18 21:30 Device driver over network Max Ruttenberg
@ 2017-12-19  2:37 ` Rik van Riel
  0 siblings, 0 replies; 2+ messages in thread
From: Rik van Riel @ 2017-12-19  2:37 UTC (permalink / raw)
  To: kernelnewbies

On Mon, 2017-12-18 at 16:30 -0500, Max Ruttenberg wrote:
> Hi all,
> 
> I have two compute nodes on a machine that are both running embedded
> Linux. The nodes are connected to each other over Ethernet.
> 
> The both have an i2c bus. Node A has a thermal sensor. Node B has
> three fans.
> 
> Right now I have a user space application running on node B that uses
> ssh to read from node A's thermal sensor and then adjust the fan
> speeds accordingly. I am wondering if there's away instead to have a
> hwmon driver running on Node B for the thermal monitor running on
> node
> A. This way I could get rid of the user space application and replace
> it with something a little bit more standard like thermald.
> 
> Is this something that people have done? Maybe if not this
> specifically, how about a driver for a device over the network?

The "standard" way of doing something like this seems to be to
have a daemon on node A, which forwards data to a daemon on node
B, which pretends to be a bus on node B.

Look at the fuse user space file system for an example of this.

-- 
All Rights Reversed.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 473 bytes
Desc: This is a digitally signed message part
Url : http://lists.kernelnewbies.org/pipermail/kernelnewbies/attachments/20171218/0cc12ab9/attachment.bin 

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2017-12-19  2:37 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-12-18 21:30 Device driver over network Max Ruttenberg
2017-12-19  2:37 ` Rik van Riel

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).