Re: Show application performance/errors from pseudo file

[email protected] Thu, 16 Oct 2014 13:00:43 -0700
Newsgroups org.kernel.vger.linux-c-programming
Message-ID <[email protected]>
I=92m no expert but I believe you=92d need a kernel module to create th=
e char device, then have your application talk to it somehow?
http://stackoverflow.com/questions/5970595/create-a-device-node-in-code

On Oct 16, 2014, at 12:50 PM, Daniel Hilst Selli <[email protected]=
> wrote:

> I'm writing a new application and would be nice to have a pseudo file=
 showing its status, just the way that procfs does with kernel.
> I'm looking for sugestions, I want to `cat' files contents and have s=
omething similar to /proc/meminfo
>=20
> First I think using named pipes, but, AFAIK, pipes would retain data =
writed until someone read it, what I thought is a kind of read
> hook that only show data when asked for. Here are a few requisites,
>=20
> - Don't retain data
> - Don't generate disk I/O
> - Vanish when application stops
> - Work with a simple cat or something similar..
>=20
> With that in mind I think about using unix domain sockets.. it seems =
to fit all requisites, for
> the fourth requisite I could use netcat, that is almost cat,
>=20
> Cheers
> --
> To unsubscribe from this list: send the line "unsubscribe linux-c-pro=
gramming" in
> the body of a message to [email protected]
> More majordomo info at  http://vger.kernel.org/majordomo-info.html

--
To unsubscribe from this list: send the line "unsubscribe linux-c-progr=
amming" in
the body of a message to [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html