Ismael Luceno wrote:
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

El Mon, 17 Aug 2009 07:39:50 +0000
Eric MSP Veith <[email protected]> escribió:
On Sun, Aug 16, 2009 at 09:39:16PM -0300, Ismael Luceno wrote:
2 - Use FUSE or others to create a /proc like file system.
Services could be directories in there, a simple "echo" would
trigger actions just like we know it from /proc and /sys.
I had the same idea, but it's more complicated to implement, and
not all systems support FUSE, e.g. embedded systems.

But a fs-like interface may be implemented.
Uhm, what about some simple FIFO files or polling or something like
that just on top of an ordinary FS?


Too much to check at the same time, would affect performance, memory
footprint and simplicity of implementation badly. There are two
possible communication methods that would be simple enough to
implement:
1. POSIX Message Queues       <- simpler to use
2. UNIX-domain sockets        <- duplex

Message queues are problematic since there's no way to send a response
directly, the same as pipes.

We could use sockets exclusively or use a combination of both...


As embedded linux developer I can say that POSIX message queues are rarely turned on in these kernels, so it's not a very good option. (I personally always turn it off ;) and there are many places where you can't just recompile kernel, e.g. motorola proprietary kernel builds or N770 or something similar).

--
  WBR, Peter Zotov
--
_______________________________________________
Initng mailing list
[email protected]
http://jw.dyndns.org/mailman/listinfo/initng

Reply via email to