Re: [RFC 7/8] drivers: introduce rpmsg, a remote-processormessaging bus

From: Pavel Machek
Date: Mon Jul 18 2011 - 18:07:32 EST


Hi!

> @@ -0,0 +1,75 @@
> +What: /sys/bus/rpmsg/devices/.../name
> +Date: June 2011
> +KernelVersion: 3.2
> +Contact: Ohad Ben-Cohen <ohad@xxxxxxxxxx>
> +Description:
> + Every rpmsg device is a communication channel with a remote
> + processor. Channels are identified with a (textual) name,
> + which is maximum 32 bytes long (defined as RPMSG_NAME_SIZE in
> + rpmsg.h).
> +
> + This sysfs entry contains the name of this channel.
> +
> +What: /sys/bus/rpmsg/devices/.../src
> +Date: June 2011
> +KernelVersion: 3.2
> +Contact: Ohad Ben-Cohen <ohad@xxxxxxxxxx>
> +Description:
> + Every rpmsg device is a communication channel with a remote
> + processor. Channels have a local ("source") rpmsg address,
> + and remote ("destination") rpmsg address. When an entity
> + starts listening on one end of a channel, it assigns it with
> + a unique rpmsg address (a 32 bits integer). This way when
> + inbound messages arrive to this address, the rpmsg core
> + dispatches them to the listening entity (a kernel driver).
> +
> + This sysfs entry contains the src (local) rpmsg address
> + of this channel. If it contains 0xffffffff, then an address
> + wasn't assigned (can happen if no driver exists for this
> + channel).

So this is basically networking... right? Why not implement it as
sockets? (accept, connect, read, write)?

Pavel
--
(english) http://www.livejournal.com/~pavelmachek
(cesky, pictures) http://atrey.karlin.mff.cuni.cz/~pavel/picture/horses/blog.html
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/